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

Usage in Deno

import { chown } from "node:fs/promises";
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.

Back to top