From 69f3a101c694dc2e099c37d6289ab0d4ec405be3 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 22 Mar 2026 15:30:01 +0000 Subject: [PATCH] Update tftpd.py Signed-off-by: ed --- copyparty/tftpd.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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: