From d526d2b4d1904ad9ee7d13a58c3c0062580f90c6 Mon Sep 17 00:00:00 2001 From: Jon Niehof Date: Fri, 17 Sep 2021 08:05:28 -0400 Subject: [PATCH] fast_data: skip deleting files that don't exist on disk --- scripts/fast_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fast_data.py b/scripts/fast_data.py index 30361f3..578c1bf 100644 --- a/scripts/fast_data.py +++ b/scripts/fast_data.py @@ -117,7 +117,7 @@ def reap(dbu, graph, participants, dofiles=False, dorecords=False, verbose=False for node in reversed(nodes[:-1]): if verbose: print(node['filename']) - if dofiles: + if node['exists_on_disk'] and dofiles: fullpath = dbu.getFileFullPath(node['file_id']) if archive is None: os.remove(fullpath)