Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.readLinkSync

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.

function readLinkSync(path: string | URL): string;
§
readLinkSync(path: string | URL): string
[src]

§Parameters

§
path: string | URL
[src]

§Return Type

§
string
[src]