Ejemplo n.º 1
0
        public FsAclEntry(AclType type, string name, FsPermission permission)
        {
            this.Type = type;

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

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

            return(this.CloneWithPermission(new_perm));
        }