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

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

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

            return(this.CloneWithPermission(new_perm));
        }