Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/lib/lib.deno_runtime.d.ts>Deno.chmodSync

Server side rendering with The Elm Architecture in Deno
Latest
function Deno.chmodSync
import { Deno } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";
const { chmodSync } = Deno;

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.

Parameters

path: string | URL
mode: number