Błąd systemu Windows 5: Odmowa dostępu podczas próby usunięcia katalogu w systemie Windows
Próbuję usunąć katalog, ale gdy uruchomię kod, wyświetla błąd systemu Windows 5: odmowa dostępu. oto mój kod: w folderze Release znajduje się folder o nazwieOD
.
if os.path.exists(os.path.join(get_path_for_output,'Release')):
shutil.rmtree(os.path.join(get_path_for_output,'Release'))
błąd jest jak:
WindowsError: [Error 5] Access is denied: 'C:\\Users\\marahama\\Desktop\\Abdur_Release\\Release\\OD\\automations\\GEM\\FMS_adapter.py'