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

Usage in Deno

```typescript import { fchownSync } from "node:node__fs.d.ts"; ```
fchownSync(
fd: number,
uid: number,
gid: number,
): void
Sets the owner of the file. Returns `undefined`. See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail.

Parameters

fd: number
uid: number
The file's new owner's user id.
gid: number
The file's new group's group id.

Return Type

void