blob: 24a874d479e3f0c6bfab5b2c635769c0ddabc23c (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { sendSync, sendAsync } from "../dispatch_json.ts";
export function linkSync(oldname: string, newname: string): void {
sendSync("op_link", { oldname, newname });
}
export async function link(oldname: string, newname: string): Promise<void> {
await sendAsync("op_link", { oldname, newname });
}
|