diff options
author | dubiousjim <dubiousjim@gmail.com> | 2020-04-02 14:54:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 14:54:33 -0400 |
commit | 7a9273d9cfa8736575317bb3cc9465e07ed4ed18 (patch) | |
tree | ab60dfff6c2cab6de9148e448a75b59f953801a6 /cli/js/lib.deno.ns.d.ts | |
parent | 470681cd3c9857e803d02884199fd680e14a1bd2 (diff) |
Refactor and expand mkdir tests (#4579)
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index ff83e499d..9cef597a4 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1022,7 +1022,8 @@ declare namespace Deno { * directories will also be created (as with the shell command `mkdir -p`). * Intermediate directories are created with the same permissions. * When recursive is set to `true`, succeeds silently (without changing any - * permissions) if a directory already exists at the path. */ + * permissions) if a directory already exists at the path, or if the path + * is a symlink to an existing directory. */ recursive?: boolean; /** Permissions to use when creating the directory (defaults to `0o777`, * before the process's umask). @@ -1036,7 +1037,7 @@ declare namespace Deno { * Deno.mkdirSync("nested/directories", { recursive: true }); * Deno.mkdirSync("restricted_access_dir", { mode: 0o700 }); * - * Throws error if the directory already exists. + * Defaults to throwing error if the directory already exists. * * Requires `allow-write` permission. */ export function mkdirSync(path: string, options?: MkdirOptions): void; @@ -1054,7 +1055,7 @@ declare namespace Deno { * await Deno.mkdir("nested/directories", { recursive: true }); * await Deno.mkdir("restricted_access_dir", { mode: 0o700 }); * - * Throws error if the directory already exists. + * Defaults to throwing error if the directory already exists. * * Requires `allow-write` permission. */ export function mkdir(path: string, options?: MkdirOptions): Promise<void>; |