Skip to content

Lchmod

[<Interface>]
type Lchmod =
    abstract member Invoke (path: PathLike, mode: Mode, callback: NoParamCallback) : unit
    abstract member __promisify__ (path: PathLike, mode: Mode) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (path: PathLike, mode: Mode, callback: NoParamCallback) : unit

Changes the permissions on a symbolic link. No arguments other than a possible exception are given to the completion callback.

This method is only implemented on macOS.

See the POSIX lchmod(2) documentation for more detail.

@deprecated Since v0.4.7

abstract member __promisify__ (path: PathLike, mode: Mode) : Promise<unit>

Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links.

Parameter
pathA path to a file. If a URL is provided, it must use the file: protocol.
modeA file mode. If a string is passed, it is parsed as an octal integer.