Remove tmpFiles folder usage

This commit is contained in:
Yang Luo
2023-08-24 21:52:30 +08:00
parent 1eeeb64a0c
commit 8073dfa88c
10 changed files with 24 additions and 73 deletions

View File

@ -34,16 +34,6 @@ func GetPath(path string) string {
return filepath.Dir(path)
}
func EnsureFileFolderExists(path string) {
p := GetPath(path)
if !FileExist(p) {
err := os.MkdirAll(p, os.ModePerm)
if err != nil {
panic(err)
}
}
}
func ListFiles(path string) []string {
res := []string{}