Commit 4d0d2af
committed
Fix deleteLastPathComponent() for absolute paths with trailing /
Paths like /home/ would return "" instead of /1 parent ef8c1d5 commit 4d0d2af
File tree
3 files changed
+7
-5
lines changed- Sources/FoundationEssentials/String
- Tests/FoundationEssentialsTests
- FileManager
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | 461 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | 462 | | |
467 | 463 | | |
468 | 464 | | |
| |||
0 commit comments