Skip to content

Commit 01439c8

Browse files
Typo is_file vs isfile (#111)
Signed-off-by: Johannes Schmude <Johannes.Schmude@ibm.com>
1 parent 2a3b5b0 commit 01439c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fms_fsdp/utils/checkpointing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _cleanup(self):
118118
ckp_to_remove = Path(
119119
get_oldest(self.ckp_path, qualifier=lambda x: "tmp" in x)
120120
)
121-
if os.path.is_file(ckp_to_remove):
121+
if os.path.isfile(ckp_to_remove):
122122
ckp_to_remove.unlink()
123123
else:
124124
shutil.rmtree(ckp_to_remove)

0 commit comments

Comments
 (0)