Example #1
0
 public void CreateDirectory(string path, bool absolutepath = false)
 {
     if (!absolutepath)
     {
         path = Path.Combine(BackupPathSrc, path);
     }
     try
     {
         FSInterop.CreateDirectoryIfNotExists(path);
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 public void CreateDirectory(string path, bool absolutepath = false)
 {
     if (!absolutepath)
     {
         if (BackupPathSrc == null)
         {
             throw new Exception("Must be configured with source path for this operation");
         }
         path = Path.Combine(BackupPathSrc, path);
     }
     try
     {
         FSInterop.CreateDirectoryIfNotExists(path);
     }
     catch (Exception)
     {
         throw;
     }
 }