Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Net :: FTP

by cheekuperl (Monk)
on Sep 04, 2012 at 05:04 UTC ( #991537=note: print w/ replies, xml ) Need Help??


in reply to Net :: FTP

To get the files using Net::FTP from remote host, you will have to traverse the remote directory tree yourself. Check the methods in Net::FTP that allow you to list files and directories on remote server, change to that directory and get the file you're looking for.


Comment on Re: Net :: FTP
Re^2: Net :: FTP
by Anonymous Monk on Sep 04, 2012 at 06:29 UTC
    But i do not know in which directory the file exists. Can you please help me in this case?
Re^2: Net :: FTP
by Anonymous Monk on Sep 04, 2012 at 06:31 UTC
    Also, as it throws error if I serach in the wrong directory and the execution stops, I cannot try in all the listed directories
      as it throws error if I serach in the wrong directory and the execution stops, I cannot try in all the listed directories
      Shouldn't be the case. You can always cd to directory and check for return codes of FTP list file command. It will tell you whether file exists or not. It won't terminate your program or your FTP session.
      Bottomline, you'll have to cd to each directory and look for the file.
        Thanks! but is it possible to use ftp Recursive for finding and returning the file i need, by searching all the subdirectories?
        thanks! But is it possible to use something like FTP Recursive to search and return a file, recursively on all sub directories?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2014-07-22 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (126 votes), past polls