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):
How often have you seen this occur? Empty files seem ... like maybe they might be rare, but I am not sure.