The HeaderPermissions property allows you to get or set the UNIX-style file permissions in the header of data being encoded or decoded.
When encoding with the Encode or ReadFile method, this property must be set (unless you are content with the default value) because the library has no way of determining what file permissions should be encoded into the header.
When decoding, as soon as the called method returns decoded data, this property's value will be changed to the permissions contained in the encoded data's header.
bupUserRead + bupGroupRead + bupOtherRead
Each of these values can be added together to combine multiple permissions.
Enumeration | Value | Description |
---|---|---|
bupUserRead | 256 | Read permission for the user that owns the file. |
bupUserWrite | 128 | Write permission for the user that owns the file. |
bupUserExecute | 64 | Execute permission for the user that owns the file. |
bupGroupRead | 32 | Read permission for the group the file belongs to. |
bupGroupWrite | 16 | Write permission for the group the file belongs to. |
bupGroupExecute | 8 | Execute permission for the group the file belongs to. |
bupOtherRead | 4 | Read permission for all other users. |
bupOtherWrite | 2 | Write permission for all other users. |
bupOtherExecute | 1 | Execute permission for all other users. |
Encode, Decode, ProcessFile, ReadFile, WriteFile