PathBase<T>.Up(1) has bug?
Open
- Dominant language
- C#
- Stars
- 83
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
It looks like there is small bug or feature in this method.
When the path is directory ends with '\' character then .Up(1) just remove this character.
And I think that the purpose of this method is to do the same what "../" does in CMD.
```csharp
var example1 = Fluent.IO.Path.Get("C:\\aaa\\bbb\\").Up(1).FullPath;
var example2 = Fluent.IO.Path.Get("C:\\aaa\\bbb").Up(1).FullPath;
Debug.Assert(example1 == example2);
```
In my opinion:
"C:\\aaa\\bbb\\" and "C:\\aaa\\bbb" are not the same string
but are the same path.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.