Question any idea how to get directory listing details over FTP?

hcd

New member
Joined
Jun 26, 2008
Messages
2
Programming Experience
5-10
Hello All,

I am retrieving files from an FTP server, but the directory contains more files than I want to bring over... I am currently able to get a list of the files avaliable and can easily create a list of files I have already downloaded, so grabbing any new files is not an issue - the problem is that there are also old files which I want to ignore.

I am hoping to find a way to list the details (such as creation date) of the files so I can ignore obsolete data. Any other ideas are appreciated! (storing the names of the existing files would work, but seems like a bit of a kludge - in fact, if I am able to get the details I won't have to store a list of downloaded files either... which would be very nice!)

Thanks in advance!

Dave
 

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,052
Programming Experience
10+
look up a library called edtFTP - it's free and works something like:

VB.NET:
For Each ff as FtpFile in server.GetFiles()
  If ff.Name = "wanted.txt" Then ff.Get()
Next ff
 
Top Bottom