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

Usage in Deno

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