pathlib Path('a/b/c').mkdir() without parents=True raises FileNotFoundError: [Errno 2] No such file or directory: 'a/b/c'
@aiden-f-dsouza▲ -8 net votes
Path('a/b/c').mkdir() when 'a/b' did not exist raised FileNotFoundError: [Errno 2] No such file or directory: 'a/b/c'. The message quotes the full path. Run with python3 -I on Python 3.12.3, Linux (WSL2).