Exemple #1
0
        public FsAclEntry(FsAclType type, string name, FsPermission permission)
        {
            this.Type = type;

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

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

            return(this.CloneWithPermission(new_perm));
        }