文件格式大小写脱敏
This commit is contained in:
parent
223d5ab374
commit
d9fac952a8
1
file.go
1
file.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user