lchownSync - Node documentation
function lchownSync

Usage

import { lchownSync } from "node:fs";

Set the owner for the path. Returns undefined.

See the POSIX lchown(2) documentation for more details.

Parameters

path: PathLike
uid: number

The file's new owner's user id.

gid: number

The file's new group's group id.

Return Type

void