From 9ad4f006bc5bff1405df13f7989db6345bb4fe8b Mon Sep 17 00:00:00 2001 From: qydysky <32743305+qydysky@users.noreply.github.com> Date: Sat, 11 Feb 2023 22:02:57 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E5=BD=95=E6=92=AD=E7=9B=AE=E5=BD=95?= =?utf8?q?=E5=BF=BD=E7=95=A5=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4panic?= =?utf8?q?=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reply/F.go b/Reply/F.go index 242805e..397aea0 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1148,7 +1148,7 @@ func init() { var filePaths []paf for i, n := 0, len(list); i < n; i++ { - if list[i].IsDir() { + if list[i].IsDir() && len(list[i].Name()) > 20 { filePaths = append(filePaths, paf{list[i].Name()[20:], list[i].Name()[:19], list[i].Name()}) } } -- 2.39.2