You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
I'm trying to delete a .zip file from my local system after uploading it to drive. The issue is that one the file is uploaded I get the following error:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'test.zip'
To delete the file I use os.remove but even when I try to remove it from the file manager it wont let me.
And here's the traceback (with shortened path) PermissionError: [WinError 32] Impossibile accedere al file. Il file è utilizzato da un altro processo: 'C:\\test\test.tar.gz'
Any update on this?
EDIT:
I created a pull request (sorry if malformed or anything, I'm not familiar at all) with what I think is a fix to this. #144
I found a work around where you can basically just free the variable using something like del fileHandle and then use the os.remove(compressed_file_path) to delete the file.
I'm trying to delete a .zip file from my local system after uploading it to drive. The issue is that one the file is uploaded I get the following error:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'test.zip'
To delete the file I use os.remove but even when I try to remove it from the file manager it wont let me.