Fixed renames and breadcrumbs for gallery.

This commit is contained in:
Leo Vasanko
2023-11-20 13:47:41 -08:00
parent 7cc7e32c33
commit b2a24fca57
7 changed files with 39 additions and 18 deletions

View File

@@ -153,13 +153,14 @@ def walk(rel: PurePosixPath, stat: stat_result | None = None) -> list[FileEntry]
isfile=entry.isfile,
)
ret.extend(sub)
ret[0] = entry
except FileNotFoundError:
pass # Things may be rapidly in motion
except OSError as e:
if e.errno == 13: # Permission denied
pass
logger.error(f"Watching {path=}: {e!r}")
if ret:
ret[0] = entry
return ret