Exemplo n.º 1
0
        public FilePermissions(String permissions)
        {
            if (permissions.Length > 9)
            {
                permissions = permissions.Substring(1, 9);
            }

            if (permissions.Length < 9)
            {
                throw new ArgumentException(String.Format("Invalid permissions string: {0}", permissions));
            }

            User  = new FilePermission(permissions.Substring(0, 3));
            Group = new FilePermission(permissions.Substring(3, 3));
            Other = new FilePermission(permissions.Substring(6, 3));
        }
Exemplo n.º 2
0
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     this.User  = user;
     this.Group = group;
     this.Other = other;
 }
Exemplo n.º 3
0
 public FilePermissions( FilePermission user, FilePermission group, FilePermission other )
 {
     User = user;
     Group = group;
     Other = other;
 }
Exemplo n.º 4
0
        public FilePermissions( String permissions )
        {
            if ( permissions.Length > 9 ) {
                permissions = permissions.Substring ( 1,9 );
            }

            if ( permissions.Length < 9 ) {
                throw new ArgumentException ( String.Format("Invalid permissions string: {0}",permissions) );
            }

            User = new FilePermission ( permissions.Substring ( 0, 3 ) );
            Group = new FilePermission ( permissions.Substring ( 3, 3 ) );
            Other = new FilePermission ( permissions.Substring ( 6, 3 ) );
        }
Exemplo n.º 5
0
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     User  = user;
     Group = group;
     Other = other;
 }
Exemplo n.º 6
0
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     this.User = user;
     this.Group = group;
     this.Other = other;
 }