Function ensureSymlink
- ensure
Symlink (target, linkName): Promise<void> Parameters
- target: string | URL
The source file path as a string or URL. If it is a relative path string, it have to be relative to the link path.
- linkName: string | URL
The destination link path as a string or URL.
Returns Promise<void>
A void promise that resolves once the link exists.
See
https://docs.deno.com/runtime/manual/basics/permissions#file-system-access for more information on Deno's permissions system.
- target: string | URL
Asynchronously ensures that the link exists, and points to a valid file.
If the parent directories for the link do not exist, they are created. If the link already exists, and it is not modified, this function does nothing. If the link already exists, and it does not point to the given target, an error is thrown.
Requires
--allow-readand--allow-writepermissions.