path_expand(path, @optional origin_directory)
path of a file or directory and return an expanded path, which is an absolute path when
origin_directory are absolute paths. The optional
origin_directory parameter, which defaults to the
current working directory, is the directory used to resolve relative paths. Components of the paths
origin_directory need not exist.
path_expand("README.md") // /users/me/projects/slogan/README.md path_expand("~/") // /Users/vijaym/ path_expand("README.md", "/tmp") // /tmp/README.md
Core Module Index | Contents