Attempt fix for unzipping server dir

This commit is contained in:
Andrew 2021-12-18 19:31:21 -05:00
parent c59b13bfde
commit 6c262d20d7

View File

@ -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)