summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/read_link.ts
blob: 33fef7e3696c827cfb6367173e426533244bddf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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 });
}