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: