hi does any body know how to download latest folder from FTP. I have folders like Evolvenet_20111112.1
Evolvenet_20111113.1
from this i have to download latest folder . Can any one please help me with an example.
Thanks in advance,
Bhasker.
Ftp listing is not working because my build folders were in \build\Evolvenet 2010\ . Listing will take default folder after logging into the ftp server. Is there any way to specify to goto that folder and list.
Thanks,
Bhasker.
I think what you’ll need to do is break it down into steps:
Since your files are named using a
yyyyMMdd.<version>pattern, you can simply sort the files by name to put them in date order.Step 1: List the files something like this
Steps 2-4: Extract newest file from the listing
Step 5: Get that file with FTP
I have answered as if Evolvenet_* were files, but I notice you say they are directories. I think all that needs to change to download the directory is the include clause in the FTP get:
To list the contents of a certain directory (rather than the user’s login directory), using the
dirattribute of the fileset to specify the remote directory, e.g.