abs package:path

An absolute path.
Construct a Path Abs Dir using QuasiQuotes.
[absdir|/|]

[absdir|/home/chris|]
Remember: due to the nature of absolute paths a path like [absdir|/home/chris|] may compile on your platform, but it may not compile on another platform (Windows).
Construct a Path Abs File using QuasiQuotes.
[absfile|/home/chris/foo.txt|]
Remember: due to the nature of absolute paths a path like [absdir|/home/chris/foo.txt|] may compile on your platform, but it may not compile on another platform (Windows).
Is the PosixPath a valid absolute dir?
Is the PosixPath a valid absolute file?
Is the WindowsPath a valid absolute dir?
Is the WindowsPath a valid absolute file?
Convert absolute path to directory to PosixPath type.
Convert absolute path to file to PosixPath type.
Make a Path Abs Dir. Remember: due to the nature of absolute paths this (e.g. /home/foo) may compile on your platform, but it may not compile on another platform (Windows).
Make a Path Abs File. Remember: due to the nature of absolute paths this (e.g. /home/foo) may compile on your platform, but it may not compile on another platform (Windows).
Convert an absolute PosixPath to a normalized absolute dir Path. Throws: InvalidAbsDir when the supplied path:
  • is not an absolute path
  • contains a .. path component representing the parent directory
  • is not a valid path (See isValid)
Convert an absolute PosixPath to a normalized absolute file Path. Throws: InvalidAbsFile when the supplied path:
  • is not an absolute path
  • is a directory path i.e.
    • has a trailing path separator
    • is . or ends in /.
  • contains a .. path component representing the parent directory
  • is not a valid path (See isValid)
Convert absolute path to directory to WindowsPath type.
Convert absolute path to file to WindowsPath type.
Make a Path Abs Dir. Remember: due to the nature of absolute paths this (e.g. /home/foo) may compile on your platform, but it may not compile on another platform (Windows).
Make a Path Abs File. Remember: due to the nature of absolute paths this (e.g. /home/foo) may compile on your platform, but it may not compile on another platform (Windows).
Convert an absolute WindowsPath to a normalized absolute dir Path. Throws: InvalidAbsDir when the supplied path:
  • is not an absolute path
  • contains a .. path component representing the parent directory
  • is not a valid path (See isValid)
Convert an absolute WindowsPath to a normalized absolute file Path. Throws: InvalidAbsFile when the supplied path:
  • is not an absolute path
  • is a directory path i.e.
    • has a trailing path separator
    • is . or ends in /.
  • contains a .. path component representing the parent directory
  • is not a valid path (See isValid)