You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2023/09/15 07:37:28 UTC

[GitHub] [airflow] potiuk commented on pull request #34385: Refactor os.makedirs/os.mkdir to Path.mkdir

potiuk commented on PR #34385:
URL: https://github.com/apache/airflow/pull/34385#issuecomment-1720818758

   > Not sure I’m into this if a Path object is not already available. `Path.mkdir` actually calls `os.mkdir` underneath so creating a Path object if it’s not already needed somewhere else is just doing extra work without any benefits.
   
   Agree. Using Path makes sense when you want to use some of the features that comes with it - such as building joined paths, getting parents etc. string. is perfectly fine if you just want to run os.mkdirs on it.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org