Message320486
| Author | CarlAndersson |
|---|---|
| Recipients | CarlAndersson |
| Date | 2018-06-26.12:01:22 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1530014482.98.0.56676864532.issue33968@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
os.makedirs does not handle the empty string the same way as the os.path.XX functions does. This is (to me) unexpected behaviour, since calls like `os.makedirs(os.path.dirname(filename), exist_ok=True)` raises an exception if `filename` does not contain any directories.
Also, it raises an `FileNotFoundError` regardless of the `exist_ok` flag. I would expect `os.makedirs('')` to fail with `FileExistsError` and `os.makedirs('', exist_ok=True)` to not do anything. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-26 12:01:23 | CarlAndersson | set | recipients: + CarlAndersson |
| 2018-06-26 12:01:22 | CarlAndersson | set | messageid: <1530014482.98.0.56676864532.issue33968@psf.upfronthosting.co.za> |
| 2018-06-26 12:01:22 | CarlAndersson | link | issue33968 messages |
| 2018-06-26 12:01:22 | CarlAndersson | create | |