Message172555
Hi, I tried to open file-like object ZipExtFile in one zip file, after operations, I close it and after all, close ZipFile.
But I still can not remove the zip file immediately.
This problem happens on Windows, error msg:
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ......
Sample code as below:
z = ZipFile('D:\\1', 'r')
zlist = z.infolist()
for zi in zlist:
zf = z.open(zi)
zf.close()
z.close()
os.remove(attach) |
|
Date |
User |
Action |
Args |
2012-10-10 08:59:12 | V.E.O | set | recipients:
+ V.E.O |
2012-10-10 08:59:12 | V.E.O | set | messageid: <1349859552.28.0.331403312725.issue16183@psf.upfronthosting.co.za> |
2012-10-10 08:59:12 | V.E.O | link | issue16183 messages |
2012-10-10 08:59:11 | V.E.O | create | |
|