FTP - Download entire folder

Blitz3D Forums/Blitz3D Programming/FTP - Download entire folder

_PJ_(Posted 2007) [#1]
I've been trying to figure a way of DL'ing an entiure folder plus contents.

I'm running into problems where BB needs to write stream data into a bank, which can then only be written out as a file, not as a directory.

A possible workaround was to see if the source file on the FTP Server is a folder, in which case, create a duplicate on the client, but with this, commands such as FileType() do not work over the connection!

Anyone got any ideas on how to help?


Beaker(Posted 2007) [#2]
Use this. Might help.


_PJ_(Posted 2007) [#3]
Thanks for the suggestyion, but yet again, my technophobia of all this net-stuff and userlibs causes me problems. That function set, although very good I';m sure is way more than I need and I kinda got confused trying to work through it to adapt it.

Any chance someone could be really helpful and just simplify out a simple function purely to download a single directory from an FTP site?

(pretty please!) Thanks!


kevin8084(Posted 2007) [#4]
Not a function, but a list of what your program needs to accomplish:
Have your program get the folder name in the FTP directory.
Create the folder on your computer with the same name.
Have your program get the FileList of the directory.
Have your program grab each item on the FileList and save it to the folder on your computer.


_PJ_(Posted 2007) [#5]
Yeah thanks, Kevin - but I know that ;)

Its just putting it into practice that I'm stuck on!