diff options
Diffstat (limited to 'cli/js/ops/fs/symlink.ts')
-rw-r--r-- | cli/js/ops/fs/symlink.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/js/ops/fs/symlink.ts b/cli/js/ops/fs/symlink.ts deleted file mode 100644 index d96e05f24..000000000 --- a/cli/js/ops/fs/symlink.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -import { sendSync, sendAsync } from "../dispatch_json.ts"; - -export interface SymlinkOptions { - type: "file" | "dir"; -} - -export function symlinkSync( - oldpath: string, - newpath: string, - options?: SymlinkOptions, -): void { - sendSync("op_symlink", { oldpath, newpath, options }); -} - -export async function symlink( - oldpath: string, - newpath: string, - options?: SymlinkOptions, -): Promise<void> { - await sendAsync("op_symlink", { oldpath, newpath, options }); -} |