whisper-api-server/internal/resources/utils.go

14 lines
184 B
Go

package resources
import "os"
func IsFileExists(filename string) bool {
_, err := os.Stat(filename)
if err != nil {
if os.IsNotExist(err) {
return false
}
}
return true
}