Omar
Omar

Reputation: 8145

How to download programmatically a folder from a server to the phone??

Hey,
I would like to download a whole folder to the phone, not just 1 file.. How can I do that in my application? Is it even possible ? Thanks.

Upvotes: 2

Views: 1782

Answers (2)

Tony the Pony
Tony the Pony

Reputation: 41367

There is no built-in function to do that. You'll have to download one file at a time, and create the folder(s) from your app.

If you're using FTP, you could use the FTP classes in Apache commons-net.

Upvotes: 1

Hazem Farahat
Hazem Farahat

Reputation: 3790

You can't download a whole folder by just its name,, but you can loop over all the files in the folder and download them one by one

Upvotes: 1

Related Questions