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

Usage in Deno

```typescript import { chownSync } from "node:node__fs.d.ts"; ```
chownSync(
path: PathLike,
uid: number,
gid: number,
): void
Synchronously changes owner and group of a file. Returns `undefined`. This is the synchronous version of [chown](../.././node__fs.d.ts/~/chown). See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail.

Parameters

path: PathLike
uid: number
gid: number

Return Type

void