delphi - How do I get and filter a list of files from TIdFTP? -


i trying make utility scan our ftp site old files.

i have come across indy ftp part of rad studio today , how works, how do following?

  1. get list of files/directories can see (go tidftp.list() listbox).
  2. narrow results date (showing filename/path)

tidftp has directorylisting collection can loop through after calling tidftp.list(). each item in collection has filename, itemtype, , modifieddate properties, amongst many others.

there many ftp listing formats used online, , indy implements many parsers them, of parsers not enabled default. if ftp server(s) connecting not support mlsd command (that parser enabled), and/or setting tidftp.usemlis property false, need either:

  1. add individual idftplistparse... units uses clause enable parsers particular formats want support.

  2. add idallftplistparsers unit uses clause enable of parsers.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -