Merge pull request #3488 from mopemope/ignore-permission-err

refactor: add ignore_permission_denied option to watch function
This commit is contained in:
paul-gauthier 2025-03-10 13:47:12 -07:00 committed by GitHub
commit 6fde4041ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,10 @@ class FileWatcher:
roots_to_watch = self.get_roots_to_watch()
for changes in watch(
*roots_to_watch, watch_filter=self.filter_func, stop_event=self.stop_event
*roots_to_watch,
watch_filter=self.filter_func,
stop_event=self.stop_event,
ignore_permission_denied=True,
):
if self.handle_changes(changes):
return