-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simpler Map unzip - delete old & simple unzip (#12773)
Updates map extraction algorithm to the following: - on startup, or immediately following map download: detect '.zip' file in 'downloadedMaps' folder - determine target folder for extraction (strip '-master' suffix if present) - delete target folder - unzip the zip file to the target folder The above is simpler notably because we just 'unzip'. Before the algorithm would check the case whether the extracted contents is a single folder, or if the zip contained all the map files in an exploded format. With this update, it does not matter, we just unzip into a destination folder. The delete is unfortunate but required. Existing maps will potentially have this format: `[map-name]/*`, rather than something like `[map-name]/[map-name-mastter]/*`. Because of this mismatch, if we just extract, then we would wind up with duplicate map files.
- Loading branch information
1 parent
5eb87c9
commit db81eac
Showing
1 changed file
with
22 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters