Skip to main content
promises.FileHandle.chmod - fs - Node documentation
method promises.FileHandle.chmod

Usage in Deno

import { type promises } from "node:fs";
FileHandle.chmod(mode: Mode): Promise<void>

Modifies the permissions on the file. See chmod(2).

Parameters

mode: Mode

the file mode bit mask.

Return Type

Promise<void>

Fulfills with undefined upon success.