ForNeVeR / ForNeVeR/TruePath

Forbid construction of incorrect absolute paths

Open
#95 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.