文件格式大小写脱敏

This commit is contained in:
zhangdeman committed 2023-07-31 15:46:59 +08:00
1 parent 223d5ab374
commit d9fac952a8
1 file changed
+1
+1
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.