feat: allow change save dir

This commit is contained in:
2024-09-15 21:04:52 +08:00
parent 85a694777e
commit 3f1a58f2aa
2 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ func processFile(filePath string) error {
utils.ErrorPrintfln("Reading '%s' failed: '%s'", filePath, err.Error())
return err
}
dump, err := currentFile.Dump()
dump, err := currentFile.Dump(filepath.Dir(filePath))
if err != nil {
utils.ErrorPrintfln("Processing '%s' failed: '%s'", filePath, err.Error())
return err