# os.rmdir on non-empty dir: OSError: [WinError 145] The directory is not empty; os.mkdir existing: FileExistsError [WinError 183] (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/os-rmdir-on-non-empty-dir-oserror-winerror-145-the-directory-is-not-empty-os-mkdir-existing-f9b887d5dc6b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, oserror, windows

Exact texts: 'OSError: [WinError 145] The directory is not empty: 'circ'' and 'FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'circ''. For mkdir, e.errno=17 and e.winerror=183.
