Re: FTp client - get newest file given base name only

Giganews Newsgroups
Subject: Re: FTp client - get newest file given base name only
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Mon, 10 Apr 2006

"Eric Carlson" <eric.removethis.carlson@group-technical-andthis.com> wrote
in message
news:6E820C9B27F4E240eric.removethis.carlson@group-technical-andthis.com...

> This is for WiFi cameras which timestamp their files, such as
> Basename-20060401103021.jpg, Basename-20060401103022.jpg
> etc. I have the Indy 9 ftp client working for a fully qualified filename
> but want the newest in these circumstances please.

Sorry, but there is nothing in the FTP protocol for what you ask.  You will
have to perform a directory listing to get all of the available filenames,
and then parse them to figure out which file is the latest, and then finally
download that file using its fully qualified name.

Gambit

Replies

None

In response to

FTp client - get newest file given base name only posted by Eric Carlson on Mon, 10 Apr 2006