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

Usage in Deno

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