Skip to main content
Module

x/netzo/deno.d.ts>Deno.readLinkSync

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function Deno.readLinkSync
allow-read
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { readLinkSync } = Deno;

Returns the full path destination of the named symbolic link.

Deno.symlinkSync("./test.txt", "./test_link.txt");
const target = Deno.readLinkSync("./test_link.txt"); // full path of ./test.txt

Throws TypeError if called with a hard link

Requires allow-read permission.

Parameters

path: string | URL

Returns

string