Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.chmodSync

Synchronously changes the permission of a specific file/directory of specified path. Ignores the process's umask.

Deno.chmodSync("/path/to/file", 0o666);

For a full description, see chmod

NOTE: This API currently throws on Windows

Requires allow-write permission.

function chmodSync(path: string | URL, mode: number): void;
§
chmodSync(path: string | URL, mode: number): void
[src]

§Parameters

§
path: string | URL
[src]
§
mode: number
[src]

§Return Type