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

Usage in Deno

import { chmod } from "node:fs/promises";
chmod(
path: PathLike,
mode: Mode,
): Promise<void>

Changes the permissions of a file.

Parameters

path: PathLike
mode: Mode

Return Type

Promise<void>

Fulfills with undefined upon success.

Back to top