path_expand


path_expand(path, @optional origin_directory) 
      

Take the path of a file or directory and return an expanded path, which is an absolute path when path or 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 path and origin_directory need not exist.

Examples:


path_expand("README.md")
// /users/me/projects/slogan/README.md
path_expand("~/")
// /Users/vijaym/
path_expand("README.md", "/tmp")
// /tmp/README.md
      

Also see:

path_normalize
path_directory
current_directory


Core Module Index | Contents