aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/file_utils.py2
1 files changed, 1 insertions, 1 deletions
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/<dir-hash>.
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: