PermissionError: [WinError 32] The process cannot access the file because it is being used by another process

前端 未结 4 555
南笙
南笙 2020-11-27 07:39

My code is for a script that looks at a folder and deletes images that are under a resolution of 1920x1080. The problem I am having is that when my code runs;



        
4条回答
  •  天命终不由人
    2020-11-27 07:52

    I was running into the same problem, but the error was intermittent. If you are coding your file open/close correctly and still running into this error, make sure you are not synching the files with Dropbox, Google Drive, etc. I paused Dropbox and I no longer see the error.

提交回复
热议问题