文件格式大小写脱敏

This commit is contained in:
白茶清欢 2023-07-31 15:46:59 +08:00
parent 223d5ab374
commit d9fac952a8

View File

@ -227,6 +227,7 @@ func (f *file) ReadDirFileList(dirPath string, ignoreHiddenFile bool, isRecurve
} else { } else {
fileInfo.Format = "dir" fileInfo.Format = "dir"
} }
fileInfo.Format = strings.ToLower(fileInfo.Format)
if fileInfo.IsDir && isRecurve { if fileInfo.IsDir && isRecurve {
if fileInfo.FileList, err = f.ReadDirFileList(fileInfo.AbsolutePath, ignoreHiddenFile, isRecurve); nil != err { if fileInfo.FileList, err = f.ReadDirFileList(fileInfo.AbsolutePath, ignoreHiddenFile, isRecurve); nil != err {
return result, err return result, err