Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Net :: FTP

by Anonymous Monk
on Sep 04, 2012 at 06:31 UTC ( #991554=note: print w/ replies, xml ) Need Help??


in reply to Re: Net :: FTP
in thread Net :: FTP

Also, as it throws error if I serach in the wrong directory and the execution stops, I cannot try in all the listed directories


Comment on Re^2: Net :: FTP
Re^3: Net :: FTP
by cheekuperl (Monk) on Sep 04, 2012 at 07:39 UTC
    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?
        FTPs job is to transfer files. It doesn't have recursive file searching abilities (at least it was so when I last worked with it). Check the FTP manual of server if it supports any such command.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2014-10-21 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (103 votes), past polls