summaryrefslogtreecommitdiff
path: root/js/os.ts
diff options
context:
space:
mode:
authorSajjad Hashemian <wolaws@gmail.com>2018-09-10 14:18:36 +0430
committerRyan Dahl <ry@tinyclouds.org>2018-09-10 15:02:07 -0400
commitc2663e1d82521e9b68a7e2e96197030a4ee00c30 (patch)
tree5223730175f88d24a028b7d1497a6a7312b77683 /js/os.ts
parente293c204a07f5a7a862e835f8a5f54f5435f8b91 (diff)
Implement deno.mkdir()
Diffstat (limited to 'js/os.ts')
-rw-r--r--js/os.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/js/os.ts b/js/os.ts
index d29d0d74a..4849ac19f 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -107,25 +107,6 @@ export function makeTempDirSync({
return path!;
}
-// mkdir creates a new directory with the specified name
-// and permission bits (before umask).
-export function mkdirSync(path: string, mode = 0o777): void {
- /* Ideally we could write:
- const res = sendSync({
- command: fbs.Command.MKDIR_SYNC,
- mkdirSyncPath: path,
- mkdirSyncMode: mode,
- });
- */
- const builder = new flatbuffers.Builder();
- const path_ = builder.createString(path);
- fbs.MkdirSync.startMkdirSync(builder);
- fbs.MkdirSync.addPath(builder, path_);
- fbs.MkdirSync.addMode(builder, mode);
- const msg = fbs.MkdirSync.endMkdirSync(builder);
- sendSync(builder, fbs.Any.MkdirSync, msg);
-}
-
function createEnv(_msg: fbs.EnvironRes): { [index: string]: string } {
const env: { [index: string]: string } = {};