ftp-deploy
ftp-deploy copied to clipboard
Enable parallel uploads
Recover the old parallelUploads param.
This param enables the parallel upload of files. The default value is 1, so the default behaviour is not changed.
To enable this, I needed to create all the folder structure beforehand, so then it can upload a unique list of files in makeAndUpload.
Maybe it would be interesting to add some event in the folder creation.
That is the only change to the default behaviour, I've tried to stay consistent with how files were handled and avoided changing any funcionality other than the already discussed.
Any comments are welcome!
Ok, so this will take longer to review - that needs a weekend and the next one is not possible
No problem.
Let me know when you have the time if there is any comments!
I would suggest adding tests here, so the code could also be checked with some examples. The test shows how it runs and how it behaves when it fails.