Spec-Zone.ru › Deno 1

Deno.chmodSync

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.

function chmodSync(path: string | URL, mode: number): void;
chmodSync(path: string | URL, mode: number): void

Parameters

path: string | URL
mode: number

Return Type

void

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.chmodSync

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API