Commit 332afc8
authored
TSCBasic: special case a few leading character cases for Path (#324)
The UNIX implementation special cases `/` and `~` which SPM depends on.
Handle the invalid file system character `~` specially on Windows as
well. As we are now getting closer to normalized path spellings, we
need to add a special case for the leading path separator character. On
UNIX, this signifies the root of the singular unified file system view.
However, Windows presents a forest to the user with 26 roots.
Consequently, a path headed by the path separator is a relative path
rather than an absolute path. However, we treat the root-relative path
as an invalid relative path for the time being as the representation is
not flexible enough to account for this model.1 parent f771460 commit 332afc8
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
764 | 766 | | |
765 | 767 | | |
766 | 768 | | |
| |||
895 | 897 | | |
896 | 898 | | |
897 | 899 | | |
898 | | - | |
| 900 | + | |
899 | 901 | | |
900 | 902 | | |
901 | 903 | | |
| |||
0 commit comments