func(dir string) bool {
info, err := os.Stat(dir)
if err != nil || !info.IsDir() {
return false
}
return true
}
goland check path is dir or not
欢迎转载,注明出处:刘世明的博客 » goland check path is dir or not
func(dir string) bool {
info, err := os.Stat(dir)
if err != nil || !info.IsDir() {
return false
}
return true
}
最新评论