blob: 4ac8db3dbab829d7c1fe2cbf9eb2512ac3bd7c4e (
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 readlinkSync(path: string): string {
return sendSync("op_read_link", { path });
}
export function readlink(path: string): Promise<string> {
return sendAsync("op_read_link", { path });
}
|