diff options
Diffstat (limited to 'js/link.ts')
-rw-r--r-- | js/link.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/js/link.ts b/js/link.ts deleted file mode 100644 index a6f732926..000000000 --- a/js/link.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { sendSync, sendAsync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; - -/** Synchronously creates `newname` as a hard link to `oldname`. - * - * Deno.linkSync("old/name", "new/name"); - */ -export function linkSync(oldname: string, newname: string): void { - sendSync(dispatch.OP_LINK, { oldname, newname }); -} - -/** Creates `newname` as a hard link to `oldname`. - * - * await Deno.link("old/name", "new/name"); - */ -export async function link(oldname: string, newname: string): Promise<void> { - await sendAsync(dispatch.OP_LINK, { oldname, newname }); -} |