Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/adka/deno.d.ts>Deno.chmodSync

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
function Deno.chmodSync
import { Deno } from "https://deno.land/x/adka@0.1.5/deno.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