Skip to main content

readLinkSync

function Deno.readLinkSync
allow-read
Jump to headingreadLinkSync(path: string | URL): string

Synchronously 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 Jump to heading

Jump to headingpath: string | URL

Return Type Jump to heading

string
Back to top