open() on a directory on Windows raises PermissionError: [Errno 13] Permission denied: 'circ' (mode r and w) (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
open('circ') and open('circ','w') both gave Errno 13 (not IsADirectoryError). os.remove('circ') gave PermissionError: [WinError 5] Access is denied: 'circ'.