Skip to main content
lchownSync - node__fs.d.ts - Node documentation
function lchownSync

Usage in Deno

```typescript import { lchownSync } from "node:node__fs.d.ts"; ```
lchownSync(
path: PathLike,
uid: number,
gid: number,
): void
Set the owner for the path. Returns `undefined`. See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) 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