From 27a097432f41f23996eac7642781565fe5b7616f Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Fri, 7 Jul 2017 07:38:20 -0700 Subject: [PATCH] Fix extract single files Dunno when this was broken, but it was. It's fixed now. --- blocksfree/legacy.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/blocksfree/legacy.py b/blocksfree/legacy.py index dc3c7a1..82d479c 100755 --- a/blocksfree/legacy.py +++ b/blocksfree/legacy.py @@ -1052,17 +1052,16 @@ def run_cppo(args: list): quit_now(2) if len(args) == 4: - print(args) g.extract_file = args[2] if g.extract_file: targetPath = args[3] if os.path.isdir(targetPath): g.target_dir = targetPath - elif targetPath.rsplit("/", 1) > 1: + elif len(targetPath.rsplit("/", 1)) > 1: g.target_dir, g.target_name = targetPath.rsplit("/", 1) if not os.path.isdir(g.target_dir): - print("Target directory not found.") + print("Target directory {} not found.".format(g.target_dir)) quit_now(2) else: if not g.catalog_only: