Hello, I have to download via FTP a directory that has many small photos.
Currently I make an ftp.list and download the whole list one by one.
Is there any way to download several in parallel to make it faster?
Thank you.
I am not an expert in this area, but in my experience FTP servers will generally allow more that one concurrent connection from a client, but will set a fairly low limit (eg four or five, maybe less) for the number of concurrent connections.
Both of your suggestions are possible, but I think that you need to think ahead about how you would like to manage concurrent downloads and avoid repetitive coding. Personally I would expect to wrap the FTP in a object with a "downloadFile()" method, and then put several of these objects (in a list) into a top-level class that manages the whole task.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.