os/osutil/filepath.go
Function Filenames
has 7 return statements (exceeds 4 allowed). Open
Open
func Filenames(name string, rx *regexp.Regexp, inclEmptyFiles, absPath bool) ([]string, error) {
isFile, err := IsFile(name, !inclEmptyFiles)
if err != nil {
return []string{}, err
}
Function SplitBest
has 5 return statements (exceeds 4 allowed). Open
Open
func SplitBest(path string) (dir, file string, err error) {
isDir, err := IsDir(path)
if err != nil {
return "", "", err
} else if isDir {