1
0
Fork 0
mirror of https://codeberg.org/Reuh/feather.git synced 2025-10-27 10:09:32 +00:00

fix: track directory changes in file watcher

This commit is contained in:
Étienne Fildadut 2025-10-13 18:00:09 +02:00
parent 95acd6d566
commit dd0ea5a639

View file

@ -210,8 +210,9 @@ class FeatherApp:
)
async def daemon_watch_loop(self, sync_up_event: Event, sync_down_event: Event):
def filter_html(change, path):
return Path(path).suffix == ".html"
def filter_html(change, path_str):
path = Path(path_str)
return path.is_dir() or path.suffix == ".html"
async for changes in awatch(
self.config.html_root,