mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Prevent item appear in media browser if name starts with dot (#69820)
This commit is contained in:
parent
f456996e12
commit
25504b697c
@ -180,6 +180,7 @@ class LocalSource(MediaSource):
|
||||
# Append first level children
|
||||
media.children = []
|
||||
for child_path in path.iterdir():
|
||||
if child_path.name[0] != ".":
|
||||
child = self._build_item_response(source_dir_id, child_path, True)
|
||||
if child:
|
||||
media.children.append(child)
|
||||
|
Loading…
x
Reference in New Issue
Block a user