class xattr
Function set for working with file extended attributes.
See Also:
man xattr
static void set(string path, string key, const ubyte[] value)
Sets new value of the required extended attribute.
Parameters
| path | Path to explored file. If it's a symlink, the target will be used. |
| key | Attribute name. If the attribute doesn't exist, it will be created. |
| value | New value of the attribute. |
static ubyte[][string] getAttrsAndValues(string path)
Creates associative array with attribute names and attribute values.
Parameters
| path | Path to explored file. If it's a symlink, the target will be used. |
Returns
all extended attributes and their values of the specified file.
Methods
| read |
| set |
| remove |
| getAttrs |
| getAttrsAndValues |