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:
parent
95acd6d566
commit
dd0ea5a639
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue