Skip to content

Move to pathlib workflow instead of os #22

@SBeairsto

Description

@SBeairsto

Use pathlib.Path for consistent and portable file path handling

Much of the current filepath logic in the repository still uses os.path and string concatenation for constructing paths. For consistency and improved readability/portability, we should update all path-related code to use pathlib.Path.

Benefits:

  • Cleaner syntax with / operator for joining paths
  • Cross-platform compatibility
  • Avoids manual string formatting for filepaths
  • Makes downstream refactoring and testing easier

Suggested action:

  • Identify all uses of os.path.join, os.makedirs, and string-based path handling
  • Replace with equivalent pathlib.Path logic
  • Ensure backwards compatibility where needed

This will help align with modern Python best practices and improve maintainability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions