Пример #1
0
 public BackupDir(VirtualFileSystemPath oldDir, string backupFolderPrefix)
 {
     myOldDir    = oldDir;
     myBackupDir = VirtualFileSystemDefinition.CreateTemporaryDirectory(InteractionContext.SolutionContext, null, backupFolderPrefix);
     myOldDir.CopyDirectory(myBackupDir);
     myOldDir.Delete();
 }
Пример #2
0
 public void Restore()
 {
     myOldDir.Delete();
     myBackupDir.CopyDirectory(myOldDir);
 }
Пример #3
0
 public void Dispose()
 {
     myTempFolder.Delete();
 }