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