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)); }
public FilePermissions(FilePermission user, FilePermission group, FilePermission other) { this.User = user; this.Group = group; this.Other = other; }
public FilePermissions( FilePermission user, FilePermission group, FilePermission other ) { User = user; Group = group; Other = other; }
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 ) ); }
public FilePermissions(FilePermission user, FilePermission group, FilePermission other) { User = user; Group = group; Other = other; }