Since I recently tried to write my own FTP back-up functionality, plenty of ideas made their way into my head. Most of ‘em was things I wanted to make with developers of FTP protocol, yet some was about improvements of corresponding library. First, and most essential:
...Addition of such procedure would make FTP library a lot more convenient by adding possibilities to easily integrate with API. However, some additions still could be made:
Code: Select all
ExamineFTPDirectory(#Ftp, Pattern$ = “*.*”)
...Yes, I understand that patterns aren’t too useful in cases of recursive scanning, but same could be said of ExamineFTPDirectory itself, since right now it’s forcing people to use temporary storages. Still, there are some cases when it’s required just to find certain set of files in large directory, and API
already supporting patterns for that task. Now, just to make life even easier:
...Yes, size requesting is supported by API (at least Windows one) too. Most of time it could be extracted from directory listing, yet some time we needs to know size of certain file. While downloading it, for example.
P.S. Also, since I’m whining about networking anyway, once again: Fred\Freak,
please, add (optional) timeout parameter to Receive~ family of procedures.