func listFiles(root string) ([]string, error) {
	var files []string

	err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
		if !info.IsDir() {
			files = append(files, path)
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return files, nil

}
// List all files inside the directory given
List all files inside the directory given
// List all files inside the directory given
func listFiles(root string) ([]string, error) {
	var files []string
	err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
		if !info.IsDir() {
			files = append(files, path)
		}
		return nil
	})
	if err != nil {
		return nil, err
	}
	return files, nil
}
func listFiles ( root string ) ( [ ] string , error ) { var files [ ] string err := filepath . Walk ( root , func ( path string , info os . FileInfo , err error ) error { if ! info . IsDir ( ) { files = append ( files , path ) } return nil } ) if err != nil { return nil , err } return files , nil }
List all files inside the directory given
List all files inside the directory given