// 判断资源包是否存在
func FileChecker(filename string) (bool, string) {
file_path := BasePath + filename
_, err := os.Stat(file_path)
if err == nil {
return true, file_path
}else {
return false, "FileChecker:::NotFound " + file_path
}
}
// 判断资源包是否存在
func FileChecker(filename string) (bool, string) {
file_path := BasePath + filename
_, err := os.Stat(file_path)
if err == nil {
return true, file_path
}else {
return false, "FileChecker:::NotFound " + file_path
}
}