blob: 4c8c7466789d90ffe5367e96fa38ee1ad5ef4dd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "../dispatch_json.ts";
export function copyFileSync(fromPath: string, toPath: string): void {
sendSync("op_copy_file", { from: fromPath, to: toPath });
}
export async function copyFile(
fromPath: string,
toPath: string
): Promise<void> {
await sendAsync("op_copy_file", { from: fromPath, to: toPath });
}
|