From d9fac952a8076fcd6ed85c0a06b1d44be814f7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 31 Jul 2023 15:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99=E8=84=B1=E6=95=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/file.go b/file.go index c253795..39d619b 100644 --- a/file.go +++ b/file.go @@ -227,6 +227,7 @@ func (f *file) ReadDirFileList(dirPath string, ignoreHiddenFile bool, isRecurve } else { fileInfo.Format = "dir" } + fileInfo.Format = strings.ToLower(fileInfo.Format) if fileInfo.IsDir && isRecurve { if fileInfo.FileList, err = f.ReadDirFileList(fileInfo.AbsolutePath, ignoreHiddenFile, isRecurve); nil != err { return result, err