aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/dl_cleanup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py
index d086761dc7..1acb049582 100755
--- a/scripts/dl_cleanup.py
+++ b/scripts/dl_cleanup.py
@@ -169,6 +169,11 @@ def main(argv):
usage()
return 1
directory = args[0]
+
+ if not os.path.exists(directory):
+ print("Can't find dl path", directory)
+ return 1
+
for (o, v) in opts:
if o in ("-h", "--help"):
usage()