Skip to content

Chown

[<Interface>]
type Chown =
    abstract member Invoke (path: PathLike, uid: float, gid: float, callback: NoParamCallback) : unit
    abstract member __promisify__ (path: PathLike, uid: float, gid: float) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (path: PathLike, uid: float, gid: float, callback: NoParamCallback) : unit

Asynchronously changes owner and group of a file. No arguments other than a possible exception are given to the completion callback.

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

@since v0.1.97

abstract member __promisify__ (path: PathLike, uid: float, gid: float) : Promise<unit>

Asynchronous chown(2) - Change ownership of a file.

Parameter
pathA path to a file. If a URL is provided, it must use the file: protocol.