コード例 #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));
        }
コード例 #2
0
ファイル: FilePermissions.cs プロジェクト: sttt/madb
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     this.User  = user;
     this.Group = group;
     this.Other = other;
 }
コード例 #3
0
 public FilePermissions( FilePermission user, FilePermission group, FilePermission other )
 {
     User = user;
     Group = group;
     Other = other;
 }
コード例 #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 ) );
        }
コード例 #5
0
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     User  = user;
     Group = group;
     Other = other;
 }
コード例 #6
0
ファイル: FilePermissions.cs プロジェクト: phaufe/madb
 public FilePermissions(FilePermission user, FilePermission group, FilePermission other)
 {
     this.User = user;
     this.Group = group;
     this.Other = other;
 }