diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
| commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
| tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/mkdir.ts | |
| parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) | |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/mkdir.ts')
| -rw-r--r-- | cli/js/mkdir.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/mkdir.ts b/cli/js/mkdir.ts index 836b785cf..532d2b73c 100644 --- a/cli/js/mkdir.ts +++ b/cli/js/mkdir.ts @@ -1,6 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; // TODO(ry) The complexity in argument parsing is to support deprecated forms of // mkdir and mkdirSync. @@ -45,7 +44,7 @@ export function mkdirSync( optionsOrRecursive?: MkdirOption | boolean, mode?: number ): void { - sendSync(dispatch.OP_MKDIR, mkdirArgs(path, optionsOrRecursive, mode)); + sendSync("op_mkdir", mkdirArgs(path, optionsOrRecursive, mode)); } /** Creates a new directory with the specified path. @@ -62,5 +61,5 @@ export async function mkdir( optionsOrRecursive?: MkdirOption | boolean, mode?: number ): Promise<void> { - await sendAsync(dispatch.OP_MKDIR, mkdirArgs(path, optionsOrRecursive, mode)); + await sendAsync("op_mkdir", mkdirArgs(path, optionsOrRecursive, mode)); } |
