Std.Path
23 public declarations
- ancestors
Str -> Array[Str]Every directory above a path, nearest first.
- components
Str -> Array[Str]The pieces of a path, with the separators removed.
- directoryOf
Str -> StrA path without its last piece, or `.` when it has only one.
- extensionOf
Str -> Option[Str]A path's extension, without its dot, or nothing when it has none.
- fromComponents
&Array[Str] -> StrThe path a sequence of pieces names.
- hasExtension
Str -> Str -> BoolWhether a path carries the given extension, compared without regard to case.
- isAbsolute
Str -> BoolWhether a path names a place from the root rather than from somewhere else.
- isHidden
Str -> BoolWhether a name is one this machine's shell hides by default.
- isInside
Str -> Str -> BoolWhether one path is inside another, once both are normalized.
- isRelative
Str -> BoolWhether a path names a place from wherever the program happens to be.
- isSeparator
Str -> BoolWhether a character ends a piece of a path on this machine.
- join
Str -> Str -> StrTwo path pieces joined with a separator, without doubling one.
- joinAll
&Array[Str] -> StrEvery piece joined in order, left to right.
- nameOf
Str -> StrThe last piece of a path.
- normalize
Str -> StrA path with `.` removed and each `..` applied to the piece before it.
- parentOf
Str -> Option[Str]The directory holding a path, or nothing when the path is a root.
- relativeTo
Str -> Str -> Option[Str]How to reach a path starting from another, or nothing when it cannot be
- resolve
Str -> Str -> StrA path resolved against a directory, and normalized.
- separator
StrThe character this machine writes between the pieces of a path.
- splitExtension
Str -> (Str, Option[Str])A path split into the part before its extension and the extension itself.
- stemOf
Str -> StrThe last piece of a path with its extension removed.
- withExtension
Str -> Str -> StrA path carrying the given extension, replacing any it had.
- withoutExtension
Str -> StrA path with its extension removed.
