func ignoreFiles(src string, ignored []string) (fs []string) {
	dir, err := os.Open(src)
	if err != nil {
		return
	}
	files, err := dir.Readdirnames(-1)
	if err != nil {
		return
	}
	for _, file := range files {
		found := false
		for _, i := range ignored {
			if _, f := path.Split(file); f == i {
				found = true
				break
			}
		}
		if !found {
			fs = append(fs, file)
		}
	}
	return
}
// ignoreFiles returns files in src without ignored.
ignoreFiles returns files in src without ignored.
// ignoreFiles returns files in src without ignored .
func ignoreFiles(src string, ignored []string) (fs []string) {
	dir, err := os.Open(src)
	if err != nil {
		return
	}
	files, err := dir.Readdirnames(-1)
	if err != nil {
		return
	}
	for _, file := range files {
		found := false
		for _, i := range ignored {
			if _, f := path.Split(file); f == i {
				found = true
				break
			}
		}
		if !found {
			fs = append(fs, file)
		}
	}
	return
}
func ignoreFiles ( src string , ignored [ ] string ) ( fs [ ] string ) { dir , err := os . Open ( src ) if err != nil { return } files , err := dir . Readdirnames ( - 1 ) if err != nil { return } for _ , file := range files { found := false for _ , i := range ignored { if _ , f := path . Split ( file ) ; f == i { found = true break } } if ! found { fs = append ( fs , file ) } } return }
ignoreFiles returns files in src without ignored.
ignoreFiles returns files in src without ignored .