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

std/node/_fs/_fs_chmod.ts>chmodSync

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function chmodSync
import { chmodSync } from "https://deno.land/std@0.39.0/node/_fs/_fs_chmod.ts";

TODO: Also accept 'path' parameter as a Node polyfill Buffer or URL type once these are implemented. See https://github.com/denoland/deno/issues/3403

Parameters

path: string
mode: string | number