nm.IndexFile skip err

This commit is contained in:
xushiwei
2024-05-09 12:08:19 +08:00
parent 329f65a1ad
commit 1800c52c04

View File

@@ -78,7 +78,9 @@ func (p *IndexBuilder) IndexDir(fromDir, toDir string, progress func(path string
func (p *IndexBuilder) IndexFile(arFile, outFile string) (err error) {
items, err := p.nm.List(arFile)
if err != nil {
return
if len(items) == 0 {
return
}
}
var b bytes.Buffer
b.WriteString("nm ")