summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/copy_file.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops/fs/copy_file.ts')
-rw-r--r--cli/js/ops/fs/copy_file.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/cli/js/ops/fs/copy_file.ts b/cli/js/ops/fs/copy_file.ts
deleted file mode 100644
index d2d2d5688..000000000
--- a/cli/js/ops/fs/copy_file.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-
-import { sendSync, sendAsync } from "../dispatch_json.ts";
-import { pathFromURL } from "../../util.ts";
-
-export function copyFileSync(
- fromPath: string | URL,
- toPath: string | URL,
-): void {
- sendSync("op_copy_file", {
- from: pathFromURL(fromPath),
- to: pathFromURL(toPath),
- });
-}
-
-export async function copyFile(
- fromPath: string | URL,
- toPath: string | URL,
-): Promise<void> {
- await sendAsync("op_copy_file", {
- from: pathFromURL(fromPath),
- to: pathFromURL(toPath),
- });
-}