Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 506 Bytes

realpath.md

File metadata and controls

16 lines (10 loc) · 506 Bytes

realpath (function)

Get the absolute path given a relative path. Symlinks are also resolved.

The path's target file/directory must exist.

Provides the same functionality as the unix binary of the same name.

If you want to convert a relative path to an absolute path, but the path's target might NOT exist, use Path.normalize.

declare function realpath(path: string | Path): Path;