mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add ignore permissions errors on watchfile
This commit is contained in:
parent
bfbc66cdc0
commit
ac3b593b8b
@ -7,7 +7,7 @@ logger = getLogger(__name__)
|
||||
|
||||
|
||||
async def monitor(path: str, publisher: Publisher):
|
||||
async for changes in awatch(path):
|
||||
async for changes in awatch(path, ignore_permission_denied=True):
|
||||
for event, file in changes:
|
||||
if event == Change.added:
|
||||
await publisher.add(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user