From 4f5df0b7a1b555426d16436a66fc0745cf70cf0b Mon Sep 17 00:00:00 2001 From: NecRaul Date: Sun, 8 Mar 2026 11:46:14 +0400 Subject: [PATCH] tftpd: filter directory listings using .hidden --- copyparty/tftpd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copyparty/tftpd.py b/copyparty/tftpd.py index 8e4c70b7..f63f9ee9 100644 --- a/copyparty/tftpd.py +++ b/copyparty/tftpd.py @@ -42,6 +42,7 @@ from .util import ( Daemon, ODict, exclude_dotfiles, + load_dothidden, min_ex, runhook, set_fperms, @@ -318,7 +319,8 @@ class Tftpd(object): ls = virs + reals if "*" not in vn.axs.udot: - names = set(exclude_dotfiles([x[2] for x in ls])) + dothidden = load_dothidden(fsroot) + names = set(exclude_dotfiles([x[2] for x in ls], dothidden)) ls = [x for x in ls if x[2] in names] try: