I am trying to extract some documents from a zip and I have the following error. The folder has all the permissions if I do it manually the extraction works.
PermissionError: [Errno 13] Permission denied: 'D:\requestsOSM\downloadPOI'
The code I am using is the following:
filezip = r'D:\requestsOSM\descargaPOI'
fileout = r'D:\requestsOSM\descargaPOI\ExtraccionPOI'
with zipfile.ZipFile(filezip, 'r') as zip_ref:
zip_ref.extractall(fileout)
I tried running visual code as administrator and I have the same problem.
According to the comments:
filezip should be a zip file, while fileput should be the destination path.