From c61fa726e6aed83f82962b4ad85e47c430981089 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 2 Jul 2023 13:55:31 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E4=B8=8E=E6=97=A7=E5=BD=95=E6=92=AD?= =?utf8?q?=E6=96=87=E4=BB=B6=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Reply/F.go b/Reply/F.go index f62866a..54caee4 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1150,7 +1150,9 @@ func getRecInfo(dirpath string) (pathInfo paf, err error) { // 从文件夹获取信息 { dirfName := path.Base(dirf.File().Name()) - pathInfo = paf{Name: dirfName[20:], StartT: dirfName[:19], Path: dirfName} + if len(dirfName) > 20 { + pathInfo = paf{Name: dirfName[20:], StartT: dirfName[:19], Path: dirfName} + } } // 从0.json获取信息 { -- 2.39.2