func GetFileList(folder string, excludeFileList []string) []string {
	files, err := ioutil.ReadDir(folder)
	if err != nil {
		log.Fatal(err)
	}
	var fileList []string
	for _, file := range files {
		excludeFile := false
		for _, exFile := range excludeFileList {
			if file.Name() == exFile {
				excludeFile = true
			}
		}
		if excludeFile == false {
			fileList = append(fileList, filepath.Join(folder, file.Name()))
		}
	}
	return fileList
}
// GetFileList - returns the file(s) and folder(s) under a specified folder
returns the file(s) and folder(s) under a specified folder
// GetFileList - returns the file ( s ) and folder ( s ) under a specified folder
func GetFileList(folder string, excludeFileList []string) []string {
	files, err := ioutil.ReadDir(folder)
	if err != nil {
		log.Fatal(err)
	}
	var fileList []string
	for _, file := range files {
		excludeFile := false
		for _, exFile := range excludeFileList {
			if file.Name() == exFile {
				excludeFile = true
			}
		}
		if excludeFile == false {
			fileList = append(fileList, filepath.Join(folder, file.Name()))
		}
	}
	return fileList
}
func GetFileList ( folder string , excludeFileList [ ] string ) [ ] string { files , err := ioutil . ReadDir ( folder ) if err != nil { log . Fatal ( err ) } var fileList [ ] string for _ , file := range files { excludeFile := false for _ , exFile := range excludeFileList { if file . Name ( ) == exFile { excludeFile = true } } if excludeFile == false { fileList = append ( fileList , filepath . Join ( folder , file . Name ( ) ) ) } } return fileList }
returns the file(s) and folder(s) under a specified folder
returns the file ( s ) and folder ( s ) under a specified folder