public MyFile(string filePath, int fileSize, bool readOnly, bool archiveFile) : this(filePath) { FileSize = fileSize; IsReadOnly = readOnly; IsArchiveFile = archiveFile; IsInfected = VirusScanner.IsFileInfected(this); }
public MyFile(string FilePath, int fileSize, bool isReadOnly, bool isArchive) : this(FilePath) { FileSize = fileSize; IsReadOnly = isReadOnly; IsArchive = isArchive; IsInfected = VirusScanner.IsFileInfected(this); }
public MyFile(string filePath, int size, bool isReadOnly, bool isArchive) { this.filePath = filePath; this.size = size; this.isReadOnly = isReadOnly; this.isArchive = isArchive; this.isInfected = VirusScanner.IsFileInfected(this); if (this.IsInfected) { throw new InfectedFileDetectedException(this.FilePath); } if (paths == null) { paths = new List <string>(); } paths.Add(filePath); }