mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Attempt fix for unzipping server dir
This commit is contained in:
parent
c59b13bfde
commit
6c262d20d7
@ -319,8 +319,11 @@ class Controller:
|
||||
path_list = test.split('/')
|
||||
root_path = path_list[0]
|
||||
if len(path_list) > 1:
|
||||
for i in range(len(path_list)-2):
|
||||
root_path = os.path.join(root_path, path_list[i+1])
|
||||
for i in range(len(path_list)-1):
|
||||
try:
|
||||
root_path = os.path.join(root_path, path_list[i+1])
|
||||
except:
|
||||
root_path = root_path
|
||||
|
||||
full_root_path = os.path.join(tempDir, root_path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user