mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 15:22:32 -06:00
Update tftpd.py
Signed-off-by: ed <s@ocv.me>
This commit is contained in:
parent
d32bb1d9a4
commit
69f3a101c6
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue