Skip to content

Instantly share code, notes, and snippets.

@StefanKarpinski
Created December 29, 2012 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StefanKarpinski/4410028 to your computer and use it in GitHub Desktop.
Save StefanKarpinski/4410028 to your computer and use it in GitHub Desktop.
splitpath => path to array of parts
joinpath => array of parts to path
parsepath(path) => (dir,base,ext)
parsepath(path,ext) => (dir,base,ext)
parsepath(path,regex) => (dir,base,ext)
stdpath(path) => standardize path, removing extraneous dots
abspath(path) => make absolute, relative to current dir
realpath(path) => resolve all symlinks
glob(path) => expand file globbing
userexpand(path) => on UNIX, tilde expand, comparable on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment