FfchownSync
Bun

function

fs.fchownSync

function fchownSync(
fd: number,
uid: number,
gid: number
): void;

Sets the owner of the file. Returns undefined.

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

@param uid

The file's new owner's user id.

@param gid

The file's new group's group id.