Path to the file or directory. ~ is expanded.
Name of the extended attribute.
The value to write.
Optionaloptions: string[]Array of option strings: "noFollow", "hfsCompression", "createOnly", "replaceOnly", "noSecurity", "noDefault". Pass an empty array or omit to use no options.
Optionalposition: numberByte offset within the attribute data. Defaults to 0. Non-zero values are only valid for "com.apple.ResourceFork".
true on success, false on failure.
Set the value of an extended attribute for a file or directory. The value is written as ISO Latin-1 bytes, providing a lossless round-trip with
xattrGet. Plain ASCII strings work directly without any encoding.