From 379739f1caf51537efda5c21a0e65550183ed80a Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Mon, 8 Feb 2016 08:09:37 +0000 Subject: [PATCH] file size can be zero --- .../dm/common/processing/plugins/gridftpFileTransferPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py b/src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py index dc6c5740..c9c3f324 100755 --- a/src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py +++ b/src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py @@ -69,7 +69,7 @@ class GridftpFileTransferPlugin(FileTransferPlugin): # Check size fSize = filePathDict.get('fileSize') sfSize = storageFilePathDict.get('fileSize') - if not fSize or not sfSize or fSize != sfSize: + if fSize is None or sfSize is None or fSize != sfSize: # Sizes differ, need to transfer file continue -- GitLab