Example #1
0
 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);
 }
Example #2
0
 /// <inheritdoc />
 public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity)
 {
     if (directorySecurity == null)
     {
         throw new ArgumentNullException("directorySecurity");
     }
     Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance);
 }
Example #3
0
        /// <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);
        }
Example #5
0
 public void SetAccessControl(IDirectorySecurityWrap directorySecurity)
 {
     DirectoryInfo.SetAccessControl(directorySecurity.DirectorySecurityInstance);
 }
Example #6
0
 public IDirectoryInfoWrap CreateSubdirectory(string path, IDirectorySecurityWrap directorySecurity)
 {
     return new DirectoryInfoWrap(DirectoryInfo.CreateSubdirectory(path, directorySecurity.DirectorySecurityInstance));
 }
Example #7
0
 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);
 }
Example #11
0
 public void SetAccessControl(string path, IDirectorySecurityWrap directorySecurity)
 {
     if (directorySecurity == null)
         throw new ArgumentNullException("directorySecurity");
     Directory.SetAccessControl(path, directorySecurity.DirectorySecurityInstance);
 }