public void CreateDirectory(string path, bool absolutepath = false) { if (!absolutepath) { path = Path.Combine(BackupPathSrc, path); } try { FSInterop.CreateDirectoryIfNotExists(path); } catch (Exception) { throw; } }
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; } }