diff --git a/main.go b/main.go index 461e7eb..a6612e5 100644 --- a/main.go +++ b/main.go @@ -150,7 +150,7 @@ func processFile(filePath, destDir, counterPath string, counter *int) { *counter++ saveCounter(counterPath, *counter) - newName := fmt.Sprintf("%05d", *counter) + newName := fmt.Sprintf("%05d%s", *counter, filepath.Ext(filePath)) destPath := filepath.Join(destDir, newName) _, err := os.Stat(destPath)