Forbid construction of incorrect absolute paths
Open
enhancement
good first issue
help wanted
- Dominant language
- C#
- Stars
- 104
- Forks
- 15
- Avg merge
- 9m
- Merged PRs (30d)
- 2
Description
Absolute paths such as `/..` (Unix) or `X:\..` (Windows) should be forbidden. Let's add the corresponding validation into the `AbsolutePath` constructor.
Also check the behavior of `new AbsolutePath("smth") / new RelativePath("..")` — it should be the same w.r.t. the exceptions thrown.
Contributor guide
Assessment
This issue has not been assessed yet.