Skip to main content
Module

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

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function Deno.chmodSync
allow-write
import { Deno } from "https://deno.land/x/netzo@v0.1.10/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