Skip to main content
function chown
chown(
path: PathLike,
uid: number,
gid: number,
callback: NoParamCallback,
): void
Deprecated

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.

Parameters

path: PathLike
uid: number
gid: number
callback: NoParamCallback

Return Type

void
Back to top