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.
In reply to Re^2: Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
by Corion
in thread Path-Tiny-0.028 Path::Tiny on win32 turns C:/ or C:\ into C: / absolute / realpath are broken
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |