-
-
Notifications
You must be signed in to change notification settings - Fork 692
Replace all os.path in ignite and tests by pathlib.Path #2418
Copy link
Copy link
Closed
Description
Let's update the codebase and tests:
- replace all
os.path.exists(folder)usage byPath(folder).exists() - replace all
os.path.join(a, b)byPath(a) / b - replace
os.makedirs(folder)byPath.mkdir(folder, parents=True) - update all folder/files being
strtoUnion[str, Path]and make all folder/file-like attributes asPathobjects.
ignite/ignite/handlers/checkpoint.py
Line 649 in 0666b40
class DiskSaver(BaseSaveHandler):
Reactions are currently unavailable