Hi Box Community,
I hope this message finds you well.
As part of the BOX redesign in our organization, I worked on redesigning the BOX API Python code. Here is an overview of the code logic and the challenges faced:
Code Logic
- Python code is invoked.
- Checks for the specific folder ID and retrieves the total number of files available.
- Creates a loop with a batch size of 100.
- Executes the download command.
Scenario
- 100 files, each with a size of 150 MB, were present in the BOX folder ID.
Challenges Faced
- During the download, 96 to 97 files are downloaded with full size, but 3 to 4 files are downloaded with 0 MB size.
Workarounds Executed
- Post-download of each file the script revalidates the file size. If the file size is 0 MB, a retry for the download is executed. This worked fine even for larger files.
- Changed the batch size to 30, and no issues were noticed with 100 files.
I am curious to know if there are any limitations imposed by Box on the number of files that can be downloaded in a single batch, especially for larger files. I have noticed a reference to a 5 GB limit for a single zip file but could not find any information regarding the batch download of 100 files, each with a size of 150 MB.
Any insights or guidance on this matter would be greatly appreciated.
Looking forward to your support.
Best regards,
Sathya