Forbid construction of incorrect absolute paths #95
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Absolute paths such as
/..
(Unix) orX:\..
(Windows) should be forbidden. Let's add the corresponding validation into theAbsolutePath
constructor.Also check the behavior of
new AbsolutePath("smth") / new RelativePath("..")
— it should be the same w.r.t. the exceptions thrown.The text was updated successfully, but these errors were encountered: