We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ea18f5 commit e91aea8Copy full SHA for e91aea8
1 file changed
client/node/toolloader/httploadtool.py
@@ -14,7 +14,8 @@
14
from util.logutil import LogPrinter
15
from util.api.fileserver import RetryFileServer
16
from util.exceptions import FileServerError
17
-from util.ziplib import ZipMgr
+from util.pathlib import PathMgr
18
+from util.zipmgr import Zip
19
20
21
class HttpToolLoader(object):
@@ -37,8 +38,10 @@ def download_tool(tool_url, dest_dir):
37
38
39
if os.path.exists(dest_zip_file_path):
40
LogPrinter.debug(f"download {tool_url} to {dest_zip_file_path}")
- ZipMgr.depress(dest_zip_file_path, tool_root_dir)
41
+ # 使用7z解压
42
+ Zip().decompress_by_7z(dest_zip_file_path, tool_root_dir)
43
LogPrinter.debug(f"unzip {dest_zip_file_path} to {dest_dir}")
44
+ PathMgr().safe_rmpath(dest_zip_file_path)
45
else:
46
raise FileServerError(f"download {tool_url} failed!")
47
0 commit comments