diff options
Diffstat (limited to 'cli/js/chown.ts')
-rw-r--r-- | cli/js/chown.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/chown.ts b/cli/js/chown.ts index 373d075b0..d56be3dc2 100644 --- a/cli/js/chown.ts +++ b/cli/js/chown.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"; /** * Change owner of a regular file or directory synchronously. Unix only at the moment. @@ -9,7 +8,7 @@ import * as dispatch from "./dispatch.ts"; * @param gid group id of the new owner */ export function chownSync(path: string, uid: number, gid: number): void { - sendSync(dispatch.OP_CHOWN, { path, uid, gid }); + sendSync("op_chown", { path, uid, gid }); } /** @@ -23,5 +22,5 @@ export async function chown( uid: number, gid: number ): Promise<void> { - await sendAsync(dispatch.OP_CHOWN, { path, uid, gid }); + await sendAsync("op_chown", { path, uid, gid }); } |