From 374d7bf253d29a910e8bbbbd6c9ea01394fb8e3f Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 10 Mar 2021 12:03:43 +0300 Subject: Extract file to the correct location --- gn3/file_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3') diff --git a/gn3/file_utils.py b/gn3/file_utils.py index 6b28784..06a1b4c 100644 --- a/gn3/file_utils.py +++ b/gn3/file_utils.py @@ -67,7 +67,7 @@ contents to TARGET_DIR/. gzipped_file.save(tar_target_loc) # Extract to "tar_target_loc/token" tar = tarfile.open(tar_target_loc) - tar.extractall(path=tar_target_loc) + tar.extractall(path=os.path.join(target_dir, token)) tar.close() # pylint: disable=W0703 except Exception: -- cgit v1.2.3