summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/mkdir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops/fs/mkdir.ts')
-rw-r--r--cli/js/ops/fs/mkdir.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/cli/js/ops/fs/mkdir.ts b/cli/js/ops/fs/mkdir.ts
index 0bd088def..8ecc51676 100644
--- a/cli/js/ops/fs/mkdir.ts
+++ b/cli/js/ops/fs/mkdir.ts
@@ -28,24 +28,10 @@ function mkdirArgs(
}
export interface MkdirOptions {
- /** Defaults to `false`. If set to `true`, means that any intermediate
- * 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. */
recursive?: boolean;
- /** Permissions to use when creating the directory (defaults to `0o777`,
- * before the process's umask).
- * Ignored on Windows. */
mode?: number;
}
-/** Synchronously creates a new directory with the specified path.
- *
- * Deno.mkdirSync("new_dir");
- * Deno.mkdirSync("nested/directories", { recursive: true });
- *
- * Requires `allow-write` permission. */
export function mkdirSync(
path: string,
optionsOrRecursive?: MkdirOptions | boolean,
@@ -54,12 +40,6 @@ export function mkdirSync(
sendSync("op_mkdir", mkdirArgs(path, optionsOrRecursive, mode));
}
-/** Creates a new directory with the specified path.
- *
- * await Deno.mkdir("new_dir");
- * await Deno.mkdir("nested/directories", { recursive: true });
- *
- * Requires `allow-write` permission. */
export async function mkdir(
path: string,
optionsOrRecursive?: MkdirOptions | boolean,