blob: bcd27ccb757be90fd57fd015df25f7539b31ac59 (
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 });
}
|