arrayAddUnique

fun arrayAddUnique(path: String, value: Boolean?, xattr: Boolean = false)
fun arrayAddUnique(path: String, value: String?, xattr: Boolean = false)
fun arrayAddUnique(path: String, value: Long?, xattr: Boolean = false)
fun arrayAddUnique(path: String, value: Int?, xattr: Boolean = false)

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