mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
extract zips in uuid folders
This commit is contained in:
@@ -19,7 +19,7 @@ from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
|
|||||||
from tweaks.daemons_tweak import Daemon
|
from tweaks.daemons_tweak import Daemon
|
||||||
|
|
||||||
App_Version = "5.0"
|
App_Version = "5.0"
|
||||||
App_Build = 8
|
App_Build = 9
|
||||||
|
|
||||||
class Page(Enum):
|
class Page(Enum):
|
||||||
Home = 0
|
Home = 0
|
||||||
|
|||||||
@@ -167,7 +167,8 @@ class PosterboardTweak(Tweak):
|
|||||||
# try to get past directory name limit on windows
|
# try to get past directory name limit on windows
|
||||||
output_dir = "\\\\?\\" + output_dir
|
output_dir = "\\\\?\\" + output_dir
|
||||||
for tendie in self.tendies:
|
for tendie in self.tendies:
|
||||||
|
zip_output = os.makedirs(os.path.join(output_dir, str(uuid.uuid4())))
|
||||||
with zipfile.ZipFile(tendie.path, 'r') as zip_ref:
|
with zipfile.ZipFile(tendie.path, 'r') as zip_ref:
|
||||||
zip_ref.extractall(output_dir)
|
zip_ref.extractall(zip_output)
|
||||||
# add the files
|
# add the files
|
||||||
self.recursive_add(files_to_restore, curr_path=output_dir)
|
self.recursive_add(files_to_restore, curr_path=output_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user