Message320497
| Author | CarlAndersson |
|---|---|
| Recipients | CarlAndersson, emilyemorehouse |
| Date | 2018-06-26.14:59:41 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1530025181.74.0.56676864532.issue33968@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I can see the point in keeping the behaviour close to the OS-level commands, but the discrepancy between os.mkdir (or os.makedirs) and os.path.dirname is not resolved. I still think that >>> os.makedirs(os.path.dirname(filename), exist_ok=True) should be able to handle the case when "filename" does not contain any directories. A possible workaround would be to use os.path.abspath somewhere in the mix. In my humble opinion creating the directory structure required to write a file should not require this level of complexity, since it is such a common operation. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-26 14:59:41 | CarlAndersson | set | recipients: + CarlAndersson, emilyemorehouse |
| 2018-06-26 14:59:41 | CarlAndersson | set | messageid: <1530025181.74.0.56676864532.issue33968@psf.upfronthosting.co.za> |
| 2018-06-26 14:59:41 | CarlAndersson | link | issue33968 messages |
| 2018-06-26 14:59:41 | CarlAndersson | create | |