Skip to content

Commit

Permalink
Merge pull request #1 from ayushi-24git/master
Browse files Browse the repository at this point in the history
Fixed issue in Downloader() for parallel downloading
  • Loading branch information
ab-anand authored Jun 10, 2021
2 parents e1fa2fe + e047be9 commit 9873940
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zdrive/download/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9873940

Please sign in to comment.