lean4-htt/src/Init/System
Austin Letson 83369f3d9f
fix: update System.FilePath.parent to handle edge cases for absolute paths (#3645)
System.FilePath.parent did not return the correct parent path in the
case of absolute file paths

Example of previous behavior
```
(FilePath.mk "/foo").parent -> some (FilePath.mk "")

(System.FilePath.mk "/").parent -> some (FilePath.mk "")
```

The new behavior is based on rust's std::path::Path::parent function (as
previously described in comment in System.FilePath)

Example of updated behavior
```
(System.FilePath.mk "/foo").parent -> some (FilePath.mk "/")

(System.FilePath.mk "/").parent -> none
```

Behavior for relative file paths is unchanged

Closes #3618
2024-03-26 05:09:44 +00:00
..
FilePath.lean fix: update System.FilePath.parent to handle edge cases for absolute paths (#3645) 2024-03-26 05:09:44 +00:00
IO.lean chore: shaking imports in Init.Data.Nat/Int (#3605) 2024-03-05 13:29:35 +00:00
IOError.lean feat: log2 for Fin and UInts 2022-11-29 01:05:06 +01:00
Mutex.lean chore: use deriving Nonempty 2022-12-22 03:48:15 +01:00
Platform.lean feat: System.Platform.target (#3207) 2024-01-24 12:11:00 +00:00
Promise.lean refactor: make Promise implementation opaque (#3273) 2024-02-09 10:43:41 +00:00
ST.lean feat: code action resolvers 2022-10-20 11:20:42 -07:00
Uri.lean chore: upstream solve_by_elim (#3408) 2024-02-21 01:16:04 +00:00