Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::FTP Problem

by mullr (Sexton)
on May 31, 2001 at 09:35 UTC ( [id://84468]=note: print w/replies, xml ) Need Help??


in reply to NET::FTP : Recursively search FTP directories (was: Net::FTP Problem)

This sounds to me like a classic recursion problem. The trick is to have one function you call on a directory which goes throught the listing, calling itself for each directory found. This should should allow you to traverse an entire directory tree without any trouble.

Hope this helps.

See you, space cowboy

Replies are listed 'Best First'.
Re: Re: Net::FTP Problem
by mattr (Curate) on May 31, 2001 at 10:52 UTC
    In case your code is working correctly on some but not all servers, consider that you are dealing with a slow network bound system. Don't make a lot of children trying to open a bunch of directories at once. Consider it could fail if the server is busy. Check the listing you get back and make sure you aren't trying to get the same (.) directory repeatedly or recursing upwards beyond the public readable folder, etc.

    Basically if you can do exactly what your program is supposed to do, perhaps interactively telling it to go one step at a time and seeing what it sees, you should be able to debug.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://84468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found