add function IsFolder

master
兔子 6 years ago
parent 99f10c8fa9
commit c036036285

@ -45,6 +45,13 @@ func IsFile(fpath string) bool {
}
return !s.IsDir()
}
func IsFolder(fpath string) bool {
s, err := os.Stat(fpath)
if err != nil {
return false
}
return s.IsDir()
}
func ReWriteFileByKV(filepath, rem, conn, ret string, kv map[string]string) bool {
var outputstr string
var ataru bool = false

Loading…
Cancel
Save