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 }}
Repository navigation
ZipFile.extractall is not multiprocess safe with regard to directory creation. #84284
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-03-29.16:33:47.483>labels= ['3.7', '3.8', 'type-bug', 'library', '3.9']
title='ZipFile.extractall is not multiprocess safe with regard to directory creation.'updated_at=<Date2020-05-22.20:15:02.673>user='https://github.com/nathansilberman'
When extracting multiple zip files, each from a separate process, if the files being extracted are in nested directories and files across zips contain the same parent directories, the extraction process fails as one zip attempts to create a directory that was already created by the extraction call in another process.
This is basically asking for zipfile to have a mode where the filesystem it is extracting to can change out from underneath it mid-extraction and it should just ignore errors and continue on.
An ignore_errors=True style of feature is probably feasible to implement, but I don't think it'd ever be a good idea for someone to use it...
Activity
nathansilberman commentedon Mar 29, 2020
When extracting multiple zip files, each from a separate process, if the files being extracted are in nested directories and files across zips contain the same parent directories, the extraction process fails as one zip attempts to create a directory that was already created by the extraction call in another process.
gpshead commentedon May 4, 2023
This is basically asking for zipfile to have a mode where the filesystem it is extracting to can change out from underneath it mid-extraction and it should just ignore errors and continue on.
An
ignore_errors=Truestyle of feature is probably feasible to implement, but I don't think it'd ever be a good idea for someone to use it...emmatyping commentedon May 20, 2024
This was duplicated and resolved in #112998 and 5d2794a respectively. I believe this issue can be closed.
gpshead commentedon May 20, 2024
agreed, #115082 appears to have fixed it.