in reply to Re: Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
in thread Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
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:
my $p= path("C:"); unlink $_ for $p->children;
For UNC paths, I see no such bad failure mode of appending a trailing directory separator.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
by xdg (Monsignor) on Aug 19, 2013 at 12:55 UTC | |
by Corion (Patriarch) on Aug 19, 2013 at 13:02 UTC | |
by xdg (Monsignor) on Aug 19, 2013 at 15:53 UTC | |
by Anonymous Monk on Aug 20, 2013 at 09:04 UTC | |
by choroba (Cardinal) on Aug 20, 2013 at 09:13 UTC | |
by Corion (Patriarch) on Aug 20, 2013 at 09:13 UTC | |
|
In Section
Seekers of Perl Wisdom