修正 #59 #99 转换后移除原始文件处理 #100

Merged
lsr merged 6 commits from fix-59-99-remove-source into main 2024-10-08 21:06:45 +00:00
Showing only changes of commit 7edd326b95 - Show all commits

View File

@ -236,13 +236,7 @@ func (p *processor) processDir(inputDir string) error {
} }
filePath := filepath.Join(inputDir, item.Name()) filePath := filepath.Join(inputDir, item.Name())
allDec := common.GetDecoder(filePath, p.skipNoopDecoder) if err := p.processFile(filePath); err != nil {
if len(allDec) == 0 {
logger.Info("skipping while no suitable decoder", zap.String("source", item.Name()))
continue
}
if err := p.process(filePath, allDec); err != nil {
logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err)) logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err))
} }
} }