mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
chmod should throw on Windows (#4446)
This commit is contained in:
parent
b22f48970f
commit
77a44163fb
4 changed files with 23 additions and 23 deletions
4
cli/js/lib.deno.ns.d.ts
vendored
4
cli/js/lib.deno.ns.d.ts
vendored
|
@ -950,7 +950,7 @@ declare namespace Deno {
|
|||
*
|
||||
* For a full description, see [chmod](#chmod)
|
||||
*
|
||||
* NOTE: This API currently has no effect on Windows
|
||||
* NOTE: This API currently throws on Windows
|
||||
*
|
||||
* Requires `allow-write` permission. */
|
||||
export function chmodSync(path: string, mode: number): void;
|
||||
|
@ -978,7 +978,7 @@ declare namespace Deno {
|
|||
* | 1 | execute only |
|
||||
* | 0 | no permission |
|
||||
*
|
||||
* NOTE: This API currently has no effect on Windows
|
||||
* NOTE: This API currently throws on Windows
|
||||
*
|
||||
* Requires `allow-write` permission. */
|
||||
export function chmod(path: string, mode: number): Promise<void>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue