Esempio n. 1
0
 public static void Delete(string path)
 {
     if (_provider == null)
     {
         Directory.Delete(path);
     }
     else
     {
         _provider.Delete(path);
     }
 }
Esempio n. 2
0
 private void DeleteTempExecutionFolder(string tempExecutionFolder)
 {
     if (_directoryProvider.DoesDirectoryExists(tempExecutionFolder))
     {
         _directoryProvider.Delete(tempExecutionFolder, true);
     }
 }
Esempio n. 3
0
 private void DeleteTempExecutionFolder(string tempExecutionFolder)
 {
     if (_directoryProvider.DoesDirectoryExists(tempExecutionFolder))
     {
         try
         {
             _directoryProvider.Delete(tempExecutionFolder, true);
         }
         catch (UnauthorizedAccessException)
         {
             _consoleProvider.Write("The temp execution couldn't be deleted. You should start the agent with Administrative permissions.");
         }
     }
 }