- toString : String
Instances For
- Lake.instCheckExistsFilePath
- Lake.instCoeFilePathGitRepo
- Lake.instCoeTextFilePathFilePath
- Lake.instComputeHashFilePathIO
- Lake.instFamilyDefNameModuleDataMkStr1FilePath
- Lake.instFamilyDefNameModuleDataMkStr1FilePath_1
- Lake.instFamilyDefNameModuleDataMkStr1FilePath_2
- Lake.instFamilyDefNameModuleDataMkStr1FilePath_3
- Lake.instFamilyDefNameModuleDataMkStr1FilePath_4
- Lake.instFamilyDefNameModuleDataMkStr2FilePath
- Lake.instFamilyDefNameModuleDataMkStr2FilePath_1
- Lake.instFamilyDefNameModuleDataMkStr2FilePath_2
- Lake.instFamilyDefNameModuleDataMkStr2FilePath_3
- Lake.instFamilyDefNameModuleDataMkStr3FilePath
- Lake.instFamilyDefNameModuleDataMkStr3FilePath_1
- Lake.instFamilyDefNameTargetDataHAppendMkStr1FilePath
- Lake.instFamilyDefNameTargetDataHAppendMkStr1FilePath_1
- Lake.instFamilyDefNameTargetDataHAppendMkStr1MkStr2FilePath
- Lake.instFamilyDefNameTargetDataMkStr1FilePath
- Lake.instFamilyDefNameTargetDataMkStr2FilePath
- Lake.instFamilyDefNameTargetDataMkStr2FilePath_1
- Lake.instGetMTimeFilePath
- Lean.instFromJsonFilePath
- Lean.instToExprFilePath
- Lean.instToJsonFilePath
- System.FilePath.instDiv
- System.FilePath.instHDivString
- System.instCoeStringFilePath
- System.instHashableFilePath
- System.instInhabitedFilePath
- System.instReprFilePath
- System.instToStringFilePath
Equations
- System.instInhabitedFilePath = { default := { toString := default } }
Equations
- System.instHashableFilePath = { hash := System.hashFilePath✝ }
Equations
- System.instReprFilePath = { reprPrec := fun (p : System.FilePath) => Repr.addAppParen (Std.Format.text "FilePath.mk " ++ repr p.toString) }
Equations
- System.instToStringFilePath = { toString := fun (p : System.FilePath) => p.toString }
The character that separates directories. In the case where more than one character is possible, pathSeparator
is the 'ideal' one.
Equations
File extension character
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
- System.FilePath.instDiv = { div := System.FilePath.join }
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.
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.
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.
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
Equations
- System.mkFilePath parts = { toString := System.FilePath.pathSeparator.toString.intercalate parts }
Equations
- System.instCoeStringFilePath = { coe := System.FilePath.mk }
@[reducible, inline]
Equations
The character that is used to separate the entries in the $PATH (or %PATH%) environment variable.
Equations
Equations
- System.SearchPath.parse s = List.map System.FilePath.mk (s.split fun (c : Char) => System.SearchPath.separator == c)