Skip to main content
fchown - fs - Node documentation
function fchown

Usage in Deno

import { fchown } from "node:fs";
fchown(
fd: number,
uid: number,
gid: number,
callback: NoParamCallback,
): void

Sets the owner of the file. No arguments other than a possible exception are given to the completion callback.

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

Parameters

fd: number
uid: number
gid: number
callback: NoParamCallback

Return Type

void