Skip to main content
Latest
function fn.resolve
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { resolve } = fn;

On MS-Windows, when {filename} is a shortcut (a .lnk file), returns the path the shortcut points to in a simplified form. When {filename} is a symbolic link or junction point, return the full path to the target. If the target of junction is removed, return {filename}. On Unix, repeat resolving symbolic links in all path components of {filename} and return the simplified result. To cope with link cycles, resolving of symbolic links is stopped after 100 iterations. On other systems, return the simplified {filename}. The simplification step is done as by simplify(). resolve() keeps a leading path component specifying the current directory (provided the result is still a relative path name) and also keeps a trailing path separator.

Can also be used as a method:

GetName()->resolve()

Parameters

denops: Denops
filename: unknown

Returns

Promise<string>