refactor: GIF 单独归类、跨文件系统复制回退与异常处理优化
This commit is contained in:
@@ -34,7 +34,12 @@ func doReadFileMimeInfo() {
|
||||
bar.SetNoticeColor(goPrint.FontColor.Red)
|
||||
for _, currentPath := range vars.GlobalFilePathList {
|
||||
// mime
|
||||
vars.GlobalFilePath2MimeInfoMap[currentPath] = util.ReadFileMimeInfo(currentPath).String()
|
||||
mt := util.ReadFileMimeInfo(currentPath)
|
||||
if mt != nil {
|
||||
vars.GlobalFilePath2MimeInfoMap[currentPath] = mt.String()
|
||||
} else {
|
||||
vars.GlobalFilePath2MimeInfoMap[currentPath] = ""
|
||||
}
|
||||
count = count + 1
|
||||
bar.PrintBar(util.CalcPercentage(count, total))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user