Skip to main content
Module

x/denops_std/function/mod.ts>resolve

📚 Standard module for denops.vim
Go to Latest
function resolve
import { resolve } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

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>