Equations
- System.instReprFilePath = { reprPrec := fun (p : System.FilePath) => Repr.addAppParen (Std.Format.text "FilePath.mk " ++ repr p.toString) }
The character that separates directories. In the case where more than one character is possible, pathSeparator
is the 'ideal' one.
Instances For
The list of all possible separators.
Instances For
File extension character
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- System.FilePath.instHDivString = { hDiv := fun (p : System.FilePath) (sub : String) => p.join { toString := sub } }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Extracts the stem (non-extension) part of p.fileName
.
Instances For
Instances For
Appends the extension ext
to a path p
.
ext
should not contain a leading .
, as this function adds one.
If ext
is the empty string, no .
is added.
Unlike System.FilePath.withExtension
, this does not remove any existing extension.
Instances For
Replace the current extension in a path p
with ext
.
ext
should not contain a .
, as this function adds one.
If ext
is the empty string, no .
is added.
Equations
Instances For
Equations
- System.mkFilePath parts = { toString := System.FilePath.pathSeparator.toString.intercalate parts }
Instances For
Equations
- System.instCoeStringFilePath = { coe := System.FilePath.mk }
@[reducible, inline]
Equations
Instances For
The character that is used to separate the entries in the $PATH (or %PATH%) environment variable.
Instances For
Equations
- path.toString = System.SearchPath.separator.toString.intercalate (List.map System.FilePath.toString path)