Example #1
0
 internal FileToBackup(string filePath, string relativePath, BackupClass backup)
 {
     this.filePath     = filePath;
     this.file         = new FileInfo(filePath);
     this.relativePath = Path.Combine(relativePath, this.file.Name);
     this.backup       = backup;
 }
Example #2
0
 public DirToBackup(string dirPath, string prevDirPath, BackupClass backup)
 {
     this.dir          = new DirectoryInfo(dirPath);
     this.relativePath = Path.Combine(prevDirPath, this.dir.Name);
     this.backup       = backup;
     if (!dir.Exists)
     {
         throw new MiscHelper.EntityNotFoundException();
     }
 }