Skip to main content
Deno.chmodSync - Deno documentation
function Deno.chmodSync
allow-write
chmodSync(
path: string | URL,
mode: number,
): void

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 Deno.chmod.

NOTE: This API currently throws on Windows

Requires allow-write permission.

Parameters

path: string | URL
mode: number

Return Type

void