Re: recursive download a complete remote directory - WeOnlyDo Discussion board

Re: recursive download a complete remote directory (General questions)

by wodSupport, Friday, April 08, 2005, 14:29 (6955 days ago) @ danielR

Daniel,

why it didn't work? Idea is this - don't start new download until you complete everything from current dir. So, basically, you should have 2 collections - collection of files to download, and collection of folders to list.

First you get item from folders collection and list it. If there are new folders inside, add them to that collection. As for files in that list, add them to files collection.

Do that as long as there are items in folders collection. Once you empty it - you will have (large?) collection of files to download - and now just download one by one. This time you don't care anymore about changing dir or anything, since you could have store full paths in the collection in the first place.

Does this help?


Complete thread: