FTP - get list and download files

sheriffporter

Member
Licensed User
Longtime User
OK, finally got FTP working (thanks for suggestions - had to change FTP servers).

Now that it works I need a little help getting syntax correct. I need to connect to a directory on the FTP server (from my Droid app), then download all the text files in that directory (deleting them afterward). Sort of a one-way sync.
If I understand this correctly, I need to first read the directory into an array, then download the files one at a time, is that right? And can anyone help me get the language right? Like how to identify the filenames then grab them.. The tutorial lost me somewhere... especially the references to ServerPath. Do I actually leave "ServerPath" in, or am I replacing that with the path to my server?
 

Roeschti

Member
Licensed User
Longtime User
Here you have a complete example with directory browsing on the ftp, and there's also an really working download progress function :D
 

Attachments

  • ftp_example.zip
    23 KB · Views: 384
Upvote 0
Top