refactor: centralize temporary file path generation and update file references
This commit is contained in:
7
util/gen_temp_file_path.go
Normal file
7
util/gen_temp_file_path.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package util
|
||||
|
||||
import "fmt"
|
||||
|
||||
func GenTempFilePath(fileName string) string {
|
||||
return fmt.Sprintf("/tmp/napcat/%s", fileName)
|
||||
}
|
||||
Reference in New Issue
Block a user