Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Net :: FTP

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

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

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.

Replies are listed 'Best First'.
Re^4: Net :: FTP
by Anonymous Monk on Sep 04, 2012 at 09:03 UTC
    Thanks! but is it possible to use ftp Recursive for finding and returning the file i need, by searching all the subdirectories?
Re^4: Net :: FTP
by Anonymous Monk on Sep 04, 2012 at 09:05 UTC
    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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991566]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-05-26 14:37 GMT
Find Nodes?
    Voting Booth?