Dotify71 opened a new issue, #68757: URL: https://github.com/apache/airflow/issues/68757
### Description The `airflow.utils.log.file_processor_handler` module currently relies heavily on the `os.path` library for filesystem path manipulations. To modernize the codebase, improve cross-platform readability, and align with modern Python standards, we should migrate these `os.path` calls (e.g., `os.path.join`, `os.path.abspath`, `os.path.isdir`) to their `pathlib.Path` equivalents. ### Use case/motivation Modernizing `file_processor_handler.py` improves readability and type safety by treating paths as objects rather than strings, which aligns with Airflow's broader goals of modernizing its Python codebase. ### Related issues None ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
