You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We often compare paths by comparing the underlying arrays.
If one path is a/b and the other is a//b the equality check will fail.
Instead, we should ensure normalized paths or document that Path is not guaranteed to be normalized.
The text was updated successfully, but these errors were encountered:
It is not a good idea to normalize when creating. It will be expensive to normalize when constructing e.g. we will have to normalize all paths when reading a directory. It may be better to provide a normalized comparison rather. Or an explicit normalization routine.
We often compare paths by comparing the underlying arrays.
If one path is
a/b
and the other isa//b
the equality check will fail.Instead, we should ensure normalized paths or document that
Path
is not guaranteed to be normalized.The text was updated successfully, but these errors were encountered: