summaryrefslogtreecommitdiff
path: root/clnindexdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'clnindexdl.py')
-rwxr-xr-xclnindexdl.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/clnindexdl.py b/clnindexdl.py
index 69a4a10..16f88d8 100755
--- a/clnindexdl.py
+++ b/clnindexdl.py
@@ -32,11 +32,15 @@ def wget_and_verify( ftp_url, md5, output_dir ):
filename = output_dir / basename
- sums = md5sum(filename)
+ q = Path(filename)
- if sums == md5:
- print(f'[{filename}] skipping already exists')
- return
+ if q.exists():
+
+ sums = md5sum(filename)
+
+ if sums == md5:
+ print(f'[{filename}] skipping already exists')
+ return
print(f'[{filename}] : starting download')