Skip to content

Commit

Permalink
We do support 0-size files! #10977
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Nov 25, 2024
1 parent e8093c6 commit 3cd9a82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public List<DataFile> saveAndAddFilesToDataset(DatasetVersion version,
// to S3 that go through the jsf dataset page. Or the Globus
// uploads, where the file sizes are looked up in bulk on
// the completion of the remote upload task.
if (dataFile.getFilesize() > 0) {
if (dataFile.getFilesize() >= 0) {
confirmedFileSize = dataFile.getFilesize();
} else {
dataAccess.open(DataAccessOption.READ_ACCESS);
Expand Down

0 comments on commit 3cd9a82

Please sign in to comment.