Update tftpd.py

Signed-off-by: ed <s@ocv.me>
This commit is contained in:
ed 2026-03-22 15:30:01 +00:00 committed by GitHub
parent d32bb1d9a4
commit 69f3a101c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ from .util import (
Daemon,
ODict,
exclude_dotfiles,
load_dothidden,
exclude_dothidden,
min_ex,
runhook,
set_fperms,
@ -319,8 +319,11 @@ class Tftpd(object):
ls = virs + reals
if "*" not in vn.axs.udot:
dothidden = load_dothidden(fsroot)
names = set(exclude_dotfiles([x[2] for x in ls], dothidden))
zsl = [x[2] for x in ls]
if "dothidden" in vn.flags and ".hidden" in zsl:
names = set(exclude_dothidden(zsl, fsroot))
else:
names = set(exclude_dotfiles(zsl))
ls = [x for x in ls if x[2] in names]
try: