# open() on a directory on Windows raises PermissionError: [Errno 13] Permission denied: 'circ' (mode r and w) (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/open-on-a-directory-on-windows-raises-permissionerror-errno-13-permission-denied-circ-mode-r-and-w-b151a3b480fe
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, permissionerror, windows

open('circ') and open('circ','w') both gave Errno 13 (not IsADirectoryError). os.remove('circ') gave PermissionError: [WinError 5] Access is denied: 'circ'.
