From e047be9f54b75d100241809f95164b4d9767cd6f Mon Sep 17 00:00:00 2001 From: ayushi-24git Date: Thu, 10 Jun 2021 14:12:39 +0530 Subject: [PATCH] For parallel download of files in a folder --- zdrive/download/downloader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zdrive/download/downloader.py b/zdrive/download/downloader.py index 025c21a..0e19bde 100644 --- a/zdrive/download/downloader.py +++ b/zdrive/download/downloader.py @@ -49,12 +49,12 @@ def downloadFolder(self, folderId, destinationFolder=None): print("Stepping into folder: {0}".format(filePath)) self.downloadFolder(itemId, filePath) # Recursive call else: - p = Process(target=self.downloadFile, args=(itemId, filePath)) + p = Process(target=self.downloadFile, args=[itemId, filePath]) p.start() download_processes.append(p) - for process in download_processes: - process.join() + for process in download_processes: + process.join() page_token = results.get('nextPageToken', None) if page_token is None: