add function IsFolder

This commit is contained in:
兔子 2018-12-25 14:37:42 +08:00
parent 99f10c8fa9
commit c036036285

View File

@ -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