public FsAclEntry(FsAclType type, string name, FsPermission permission) { this.Type = type; if (name == null) { name = ""; } this.Name = name; this.Permission = permission; }
public FsAclEntry CloneWithPermission(FsPermission permission) { var new_entry = new FsAclEntry(this.Type, this.Name, permission); return(new_entry); }
public FsAclEntry OrWith(FsPermission mask) { var new_perm = this.Permission.Value.OrWith(mask); return(this.CloneWithPermission(new_perm)); }