Raise an exception for empty files before starting syncToSynapse upload


If a local file in the manifest is found to be empty, it would save the user time to raise an exception and exit before starting the upload process.

During the manifest "validation" performed before uploading data via the syncToSynapse function, there appears to be a quick file size calculation:

However, the operation will proceed even if there is an empty file, then throw an error when it tries to upload that file (i.e., when it's too late to do anything about it):




Meredith Slota
April 11, 2019, 7:16 PM

How often have you seen this occur? Empty files seem ... like maybe they might be rare, but I am not sure.

Your pinned fields
Click on the next to a field label to start pinning.


Jordan Kiang


James Eddy