Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are brokenby Corion (Patriarch) |
on Aug 19, 2013 at 10:58 UTC ( [id://1050012]=note: print w/replies, xml ) | Need Help?? |
I would say that there is a misconception. C: does not reference the root directory of a volume. It references the current working directory of that volume. You should either prohibit this or handle it properly, not silently convert to something else, especially not a root directory. I think the failure mode of converting C: to C:/ is a very bad one:
For UNC paths, I see no such bad failure mode of appending a trailing directory separator.
In Section
Seekers of Perl Wisdom
|
|