diff options
Diffstat (limited to 'js/os.ts')
-rw-r--r-- | js/os.ts | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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 } = {}; |