aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/collateral/cs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/collateral/cs.py b/python/collateral/cs.py
index 5850aaa8..bede3114 100644
--- a/python/collateral/cs.py
+++ b/python/collateral/cs.py
@@ -39,6 +39,10 @@ def download_files(count=20):
p = p.parent / f"{msg.datetime_sent:%Y-%m-%d} {p.stem}{p.suffix}"
if not p.exists():
p.write_bytes(attach.content)
+ else:
+ p = DATA_DIR / fname
+ if not p.exists():
+ p.write_bytes(attach.content)
def load_pdf(file_path: pathlib.Path):