Skip Menu |

This queue is for tickets about the Net-FTP-Find CPAN distribution.

Report information
The Basics
Id: 67375
Status: resolved
Priority: 0/
Queue: Net-FTP-Find

People
Owner: Nobody in particular
Requestors: oleg [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.01
  • 0.011
Fixed in: (no value)



Subject: Doesn't work when server response for listing request doesn't contains "." - current directory
Yes, there are such FTP servers which response for "LIST" command doesn't contains neither ".", nor ".." directory. But this situation is not considered in this module. Problem is somewere around this statement: if ($depth == 0) { next if $_ ne '.'; $_ = $directory; } All directories skipped becouse of "next" command. I could give you access to one of such FTP server if you need some tests.
On Mon Apr 11 06:29:09 2011, OLEG wrote: Show quoted text
> Yes, there are such FTP servers which response for "LIST" command > doesn't contains neither ".", nor ".." directory. But this situation is > not considered in this module.
Maybe the author should consider using File::Listing http://search.cpan.org/~gaas/File-Listing/
On Mon Apr 11 06:29:09 2011, OLEG wrote: Show quoted text
> I could give you access to one of such FTP server if you need some tests.
Here's a public one w/ anonymous access: ftp://cdaftp.cfa.harvard.edu/pub/
Thanks for the bug report and comments. This problem was fixed in release 0.034. I adopted File::Listing by this proposal. On 2011-5月-12 木 19:29:12, SHAW wrote: Show quoted text
> On Mon Apr 11 06:29:09 2011, OLEG wrote:
> > Yes, there are such FTP servers which response for "LIST" command > > doesn't contains neither ".", nor ".." directory. But this situation is > > not considered in this module.
> > Maybe the author should consider using File::Listing > > http://search.cpan.org/~gaas/File-Listing/
At now, the Net::FTP::Find can traverse directory of ftp://cdaftp.cfa.harvard.edu/pub/.