예제 #1
0
        public FsAclEntry(AclType type, string name, FsPermission permission)
        {
            this.Type = type;

            if (name == null)
            {
                name = "";
            }
            this.Name       = name;
            this.Permission = permission;
        }
예제 #2
0
        public FsAclEntry CloneWithPermission(FsPermission permission)
        {
            var new_entry = new FsAclEntry(this.Type, this.Name, permission);

            return(new_entry);
        }
예제 #3
0
        public FsAclEntry OrWith(FsPermission mask)
        {
            var new_perm = this.Permission.Value.OrWith(mask);

            return(this.CloneWithPermission(new_perm));
        }