mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
fix path stupid
This commit is contained in:
@@ -89,7 +89,7 @@ class PosterboardTweak(Tweak):
|
|||||||
|
|
||||||
|
|
||||||
def clean_path_name(self, path: str):
|
def clean_path_name(self, path: str):
|
||||||
return re.sub('[^a-zA-Z0-9\.\/\-_ ]', '', path)
|
return path# re.sub('[^a-zA-Z0-9\.\/\-_ ]', '', path)
|
||||||
|
|
||||||
|
|
||||||
def recursive_add(self,
|
def recursive_add(self,
|
||||||
@@ -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())))
|
zip_output = os.path.join(output_dir, str(uuid.uuid4()))
|
||||||
|
os.makedirs(zip_output)
|
||||||
with zipfile.ZipFile(tendie.path, 'r') as zip_ref:
|
with zipfile.ZipFile(tendie.path, 'r') as zip_ref:
|
||||||
zip_ref.extractall(zip_output)
|
zip_ref.extractall(zip_output)
|
||||||
# add the files
|
# add the files
|
||||||
|
|||||||
Reference in New Issue
Block a user