Skip to content

Commit

Permalink
fix ignore list error
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Oct 7, 2024
1 parent 62bea69 commit de34f2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions syftbox/client/fsevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit de34f2a

Please sign in to comment.