From c8b4cf674c8c9f6c508c108904b47c12b325858f Mon Sep 17 00:00:00 2001 From: Asher Glick Date: Sat, 17 Dec 2022 17:33:08 -0600 Subject: [PATCH] Tracking when files are copied/moved not just updated --- pylib/producer/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/producer/scheduler.py b/pylib/producer/scheduler.py index ce5defd9..ba4b1e47 100644 --- a/pylib/producer/scheduler.py +++ b/pylib/producer/scheduler.py @@ -856,7 +856,7 @@ def get_aggregated_modified_time( for subpath in os.listdir(path): paths.append(os.path.join(path, subpath)) else: - time_list.append(os.path.getmtime(path)) + time_list.append(max(os.path.getmtime(path), os.path.getctime(path))) # Sanity check that there are timestamps in the list before passing them # to the aggregator.