public IDirectoryInfoWrap CreateDirectory(string path, IDirectorySecurityWrap directorySecurity) { if (directorySecurity == null) throw new ArgumentNullException("directorySecurity"); DirectoryInfo di = Directory.CreateDirectory(path, directorySecurity.DirectorySecurityInstance); return new DirectoryInfoWrap(di); }
/// <inheritdoc /> public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity) { if (directorySecurity == null) { throw new ArgumentNullException("directorySecurity"); } Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance); }
/// <inheritdoc /> public IDirectoryInfoWrap CreateDirectory(string path, IDirectorySecurityWrap directorySecurity) { if (directorySecurity == null) { throw new ArgumentNullException("directorySecurity"); } DirectoryInfo di = Directory.CreateDirectory(path, directorySecurity.DirectorySecurityInstance); return(new DirectoryInfoWrap(di)); }
public void GetAccessControl_test() { IDirectorySecurityWrap directorySecurityWrap = _directoryWrap.GetAccessControl(path); Assert.IsNotNull(directorySecurityWrap.DirectorySecurityInstance); }
public void SetAccessControl(IDirectorySecurityWrap directorySecurity) { DirectoryInfo.SetAccessControl(directorySecurity.DirectorySecurityInstance); }
public IDirectoryInfoWrap CreateSubdirectory(string path, IDirectorySecurityWrap directorySecurity) { return new DirectoryInfoWrap(DirectoryInfo.CreateSubdirectory(path, directorySecurity.DirectorySecurityInstance)); }
public void Create(IDirectorySecurityWrap directorySecurity) { DirectoryInfo.Create(directorySecurity.DirectorySecurityInstance); }
/// <inheritdoc /> public void SetAccessControl(IDirectorySecurityWrap directorySecurity) { DirectoryInfo.SetAccessControl(directorySecurity.DirectorySecurityInstance); }
/// <inheritdoc /> public IDirectoryInfoWrap CreateSubdirectory(string path, IDirectorySecurityWrap directorySecurity) { return(new DirectoryInfoWrap(DirectoryInfo.CreateSubdirectory(path, directorySecurity.DirectorySecurityInstance))); }
/// <inheritdoc /> public void Create(IDirectorySecurityWrap directorySecurity) { DirectoryInfo.Create(directorySecurity.DirectorySecurityInstance); }
public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity) { if (directorySecurity == null) throw new ArgumentNullException("directorySecurity"); Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance); }