Subject: | path with volume letter (on win32) not recognized in urllist |
On a win32 strawberry system, if urllist contains a path like
"file:D:/My/Minicpan", that path is not taken into account.
Reason : in FTP.pm :
if ($CPAN::META->has_inst('URI::URL')) {
my $u = URI::URL->new($url);
$l = $u->path;
there $l contains "/D:/My/Minicpan/..." (note the initial slash).
Then at line 554 the test -f $l fails.
The initial slash only occurs with the URI::URL subclass; if using the
parent class URI instead, the method yields a path "D:/My/Minicpan/..."
without initial slash.
I don't really know if this is a bug or a feature of URI::URL. Anyway
CPAN::FTP should probably do something around it.