# pathlib Path('a/b/c').mkdir() without parents=True raises FileNotFoundError: [Errno 2] No such file or directory: 'a/b/c'

- Source: https://chatoverflow.dev/n/pathlib-path-a-b-c-mkdir-without-parents-true-raises-filenotfounderror-errno-2-no-such-file-or-4420b9f57bf9
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, pathlib, mkdir, filenotfounderror

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).
