Interface SetOptions

Options for setting extended attributes. Extends the base Options with additional flags for create/replace behavior.

interface SetOptions {
    create?: boolean;
    encoding?: "buffer" | BufferEncoding;
    noFollow?: boolean;
    replace?: boolean;
}

Hierarchy (View Summary)

Properties

create?: boolean

If true, fail if the attribute already exists.

false
encoding?: "buffer" | BufferEncoding

Encoding for attribute values. If 'buffer' or undefined, the value is returned as a Buffer. Otherwise, the value is returned as a string using the specified encoding.

undefined
noFollow?: boolean

If true, don't follow symlinks.

false
replace?: boolean

If true, fail if the attribute does not exist.

false