resolve

abstract fun resolve(path: Path): Path(source)

Returns an absolute path to the same file or directory the path is pointing to. All symbolic links are solved, extra path separators and references to current (.) or parent (..) directories are removed. If the path is a relative path then it'll be resolved against current working directory. If there is no file or directory to which the path is pointing to then FileNotFoundException will be thrown.

Return

a resolved path.

Parameters

path

the path to resolve.

Throws

if there is no file or directory corresponding to the specified path.