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?
- get list of files/directories can see (go tidftp.list() listbox).
- 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:
add individual
idftplistparse...unitsusesclause enable parsers particular formats want support.add
idallftplistparsersunitusesclause enable of parsers.
Comments
Post a Comment