diff --git a/scripts/watcher.py b/scripts/watcher.py index 01adb4b..97fb188 100644 --- a/scripts/watcher.py +++ b/scripts/watcher.py @@ -203,6 +203,12 @@ def get_changed_files(state: dict) -> list: continue if "Journal/Media" in str(path): continue + if "Generative Design" in path.parts and "Processing" in path.parts: + continue + if "Computational Design 2017" in path.parts and "Student Work" in path.parts: + continue + if path.stat().st_size == 0: + continue if state.get(str(path)) != str(path.stat().st_mtime): changed.append(path) return changed @@ -287,6 +293,10 @@ class IngestHandler(FileSystemEventHandler): return True if "Journal/Media" in str(path): return True + if "Generative Design" in path.parts and "Processing" in path.parts: + return True + if "Computational Design 2017" in path.parts and "Student Work" in path.parts: + return True return False def on_created(self, event):