Equations
- System.instInhabitedFilePath = { default := { toString := default } }
Equations
- System.instHashableFilePath = { hash := [anonymous] }
Equations
- System.instReprFilePath = { reprPrec := fun p => Repr.addAppParen (Std.Format.text "FilePath.mk " ++ repr p.toString) }
Equations
- System.instToStringFilePath = { toString := fun p => p.toString }
The character that separates directories. In the case where more than one character is possible, pathSeparator
is the 'ideal' one.
Equations
- System.FilePath.pathSeparator = if System.Platform.isWindows = true then Char.ofNat 92 else Char.ofNat 47
The list of all possible separators.
Equations
- System.FilePath.pathSeparators = if System.Platform.isWindows = true then [Char.ofNat 92, Char.ofNat 47] else [Char.ofNat 47]
File extension character
Equations
Equations
- System.FilePath.exeExtension = if System.Platform.isWindows = true then "exe" else ""
Case-insensitive file system
def
System.FilePath.normalize
(p : System.FilePath)
(normalizeCase : optParam Bool System.FilePath.isCaseInsensitive)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- System.FilePath.join p sub = if System.FilePath.isAbsolute sub = true then sub else { toString := p.toString ++ Char.toString System.FilePath.pathSeparator ++ sub.toString }
Equations
- System.FilePath.instDivFilePath = { div := System.FilePath.join }
Equations
- System.FilePath.instHDivFilePathString = { hDiv := fun p sub => System.FilePath.join p { toString := sub } }
Equations
- System.FilePath.parent p = System.FilePath.mk <$> String.extract p.toString { byteIdx := 0 } <$> System.FilePath.posOfLastSep p
Equations
- One or more equations did not get rendered due to their size.
Extracts the stem (non-extension) part of p.fileName
.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- System.FilePath.withFileName p fname = match System.FilePath.parent p with | none => { toString := fname } | some p => p / fname
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- System.mkFilePath parts = { toString := String.intercalate (Char.toString System.FilePath.pathSeparator) parts }
Equations
- System.instCoeStringFilePath = { coe := System.FilePath.mk }
The character that is used to separate the entries in the $PATH (or %PATH%) environment variable.
Equations
- System.SearchPath.separator = if System.Platform.isWindows = true then Char.ofNat 59 else Char.ofNat 58
Equations
- System.SearchPath.parse s = List.map System.FilePath.mk (String.split s fun c => System.SearchPath.separator == c)