Skip to main content
promises.chown - fs - Node documentation
function promises.chown

Usage in Deno

import { promises } from "node:fs";
chown(
path: PathLike,
uid: number,
gid: number,
): Promise<void>

Changes the ownership of a file.

Parameters

path: PathLike
uid: number
gid: number

Return Type

Promise<void>

Fulfills with undefined upon success.