refactor: centralize temporary file path generation and update file references

This commit is contained in:
lixiangwuxian
2025-02-22 18:40:26 +08:00
parent 388cfdf377
commit 38940fa07f
7 changed files with 25 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
package util
import "fmt"
func GenTempFilePath(fileName string) string {
return fmt.Sprintf("/tmp/napcat/%s", fileName)
}