Skip to main content
FileHandle.chmod - node__fs--promises.d.ts - Node documentation
method FileHandle.chmod

Usage in Deno

```typescript import { type FileHandle } from "node:node__fs--promises.d.ts"; ```
FileHandle.chmod(mode: Mode): Promise<void>
Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html).

Parameters

mode: Mode
the file mode bit mask.

Return Type

Promise<void>
Fulfills with `undefined` upon success.