diff --git a/copyparty/tftpd.py b/copyparty/tftpd.py index f63f9ee9..a8be53f0 100644 --- a/copyparty/tftpd.py +++ b/copyparty/tftpd.py @@ -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: