Path

  • path.combine(a,b,c,d,...) Combines the paths given into a single path using the right slash.
  • path.directorySeparator Returns the directory seperator (/ on Posix; \ on Windows)
  • path.resolve(relative path, optional base): path Resolve a path
  • path.getFileName(path): string returns the filename without directory
  • path.getFileNameWithoutExtension(path): string Returns the filename without directory and extension
  • path.getFileNameExtension(path): string Returns the extension of a file (includes a .)
  • path.getFolderName(path): string Returns the folder name of a filename