Subject: | dir_hashref cuts the first character of a filename |
Date: | Tue, 18 Jan 2011 18:41:11 +0100 |
To: | bug-Net-FTP-File [...] rt.cpan.org |
From: | Matteo Riva <muradin [...] gmail.com> |
I found that on a specific site (the problem is not reproducible
everywhere), the dir_hashref function cuts the name of a directory from
"en" to just "n" because for some reason the space that's supposed to be
there is missing.
The offending line is #50 in current version:
$path = substr( $path, 1 ); # remove first space that is there but
is not part of the name
I changed it to:
$path =~ s/^ //; # remove first space that is there but is not part
of the name
which actually removes a space and not any character present.