From d68f346931ce4e45785dcb5c7a34ee6bffdba879 Mon Sep 17 00:00:00 2001 From: zoomdong <1344492820@qq.com> Date: Tue, 14 Apr 2020 20:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=20Deno.mkdirSync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib.deno.ns.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib.deno.ns.d.ts b/lib.deno.ns.d.ts index 0d1168e2..e06980aa 100644 --- a/lib.deno.ns.d.ts +++ b/lib.deno.ns.d.ts @@ -1035,15 +1035,15 @@ declare namespace Deno { mode?: number; } - /** Synchronously creates a new directory with the specified path. + /** 同步地在指定路径下创建一个新的目录。 * * Deno.mkdirSync("new_dir"); * Deno.mkdirSync("nested/directories", { recursive: true }); * Deno.mkdirSync("restricted_access_dir", { mode: 0o700 }); * - * Defaults to throwing error if the directory already exists. + * 目录存在的情况下,默认抛出错误。 * - * Requires `allow-write` permission. */ + * 需要 `allow-write` 权限。 */ export function mkdirSync(path: string, options?: MkdirOptions): void; /** Creates a new directory with the specified path.