From de34f2a8c58c3348943ac2760e7dc52ab6cdc8c0 Mon Sep 17 00:00:00 2001 From: Yash Gorana Date: Mon, 7 Oct 2024 21:32:12 +0530 Subject: [PATCH] fix ignore list error --- syftbox/client/fsevents.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/syftbox/client/fsevents.py b/syftbox/client/fsevents.py index 947cedc0..24ebb44a 100644 --- a/syftbox/client/fsevents.py +++ b/syftbox/client/fsevents.py @@ -43,12 +43,11 @@ def __init__( ): self.watch_dir = watch_dir self.callbacks = callbacks - self.ignored = ignored + self.ignored = [Path(self.watch_dir, ignore) for ignore in ignored] def on_any_event(self, event: FileSystemEvent) -> None: for ignore in self.ignored: - full_path = self.watch_dir + "/" + ignore - if event.src_path.startswith(full_path): + if event.src_path.startswith(str(ignore)): return for cb in self.callbacks: