func ignoreOnlyDirs(r ignoreRuleEvalFn) ignoreRuleEvalFn {
	return func(path string, isDir bool) ruleResult {
		if !isDir {
			return ruleResultKeep
		}

		return r(path, isDir)
	}
}
// ignoreOnlyDirs constructs a ignoreRuleEvalFn that always returns
// ruleResultKeep for input paths that are not directories or the result of
// evaluating r for directory paths.
ignoreOnlyDirs constructs a ignoreRuleEvalFn that always returns
ruleResultKeep for input paths that are not directories or the result of
evaluating r for directory paths.
// ignoreOnlyDirs constructs a ignoreRuleEvalFn that always returns // ruleResultKeep for input paths that are not directories or the result of // evaluating r for directory paths .
func ignoreOnlyDirs(r ignoreRuleEvalFn) ignoreRuleEvalFn {
	return func(path string, isDir bool) ruleResult {
		if !isDir {
			return ruleResultKeep
		}
		return r(path, isDir)
	}
}
func ignoreOnlyDirs ( r ignoreRuleEvalFn ) ignoreRuleEvalFn { return func ( path string , isDir bool ) ruleResult { if ! isDir { return ruleResultKeep } return r ( path , isDir ) } }
ignoreOnlyDirs constructs a ignoreRuleEvalFn that always returns
ruleResultKeep for input paths that are not directories or the result of
evaluating r for directory paths.
ignoreOnlyDirs constructs a ignoreRuleEvalFn that always returns ruleResultKeep for input paths that are not directories or the result of evaluating r for directory paths .