Message403128
open() does not create parent directories either. And no any function in the stdlib which creates a file does it. It would be rather error-prone if they do, because you can create a file at wrong place.
So just create a directory if you need to, and let the code to raise an exception to report your errors. |
|
Date |
User |
Action |
Args |
2021-10-04 10:50:17 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, i11u |
2021-10-04 10:50:17 | serhiy.storchaka | set | messageid: <1633344617.73.0.165957822506.issue45360@roundup.psfhosted.org> |
2021-10-04 10:50:17 | serhiy.storchaka | link | issue45360 messages |
2021-10-04 10:50:17 | serhiy.storchaka | create | |
|