Skip to content

Replace all os.path in ignite and tests by pathlib.Path #2418

@vfdev-5

Description

@vfdev-5

Let's update the codebase and tests:

  1. replace all os.path.exists(folder) usage by Path(folder).exists()
  2. replace all os.path.join(a, b) by Path(a) / b
  3. replace os.makedirs(folder) by Path.mkdir(folder, parents=True)
  4. update all folder/files being str to Union[str, Path] and make all folder/file-like attributes as Path objects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions