package fsutils import ( "os" ) func IsDir(filename string) bool { fi, err := os.Stat(filename) return err == nil && fi.IsDir() }