Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

翻译 Deno.mkdirSync #20

Merged
merged 1 commit into from
Apr 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down