Spec-Zone.ru › Deno 1

Deno.readLink

Resolves to the full path destination of the named symbolic link.

await Deno.symlink("./test.txt", "./test_link.txt");
const target = await Deno.readLink("./test_link.txt"); // full path of ./test.txt

Throws TypeError if called with a hard link.

Requires allow-read permission.

function readLink(path: string | URL): Promise<string>;
readLink(path: string | URL): Promise<string>

Parameters

path: string | URL

Return Type

Promise<string>

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.readLink

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API