array Add Unique
fun arrayAddUnique(path: String, value: Boolean?, xattr: Boolean = false)
Content copied to clipboard
Adds the value to an array (creating the array if it doesn't already exist) or fail with PathExistsException if the array already contains the value.
Parameters
path
Path to the array to modify or create
value
Value to add to the array if not already present