Skip to content

Commit 60ef493

Browse files
authored
Merge pull request #2066 from bhargav191098/bhargav191098/fileSizeBug
fix the data file existence check
2 parents bb39ae3 + a9d905d commit 60ef493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/fedml/api/modules/storage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ def _get_storage_service(service):
232232
raise NotImplementedError(f"Service {service} not implemented")
233233

234234
def _check_data_path(data_path):
235-
if not os.path.isdir(data_path) or not os.path.isfile(data_path):
236-
return False
237-
return True
235+
if os.path.isdir(data_path) or os.path.isfile(data_path):
236+
return True
237+
return False
238238

239239

240240
def _archive_data(data_path: str) -> (str, str):

0 commit comments

Comments
 (0)