func GlobBatch(glob, target string) (map[string]string, error) {
	if matches, err := filepath.Glob(glob); err != nil {
		return nil, err
	} else {
		result := make(map[string]string)
		for _, m := range matches {
			result[m] = filepath.Join(target, filepath.Base(m))
		}
		return result, nil
	}
}
// This accepts a glob and a target directory and converts it to a map
// containing entries where the key is a matching file and the value is
// a file in the target directory having the same name.
This accepts a glob and a target directory and converts it to a map
containing entries where the key is a matching file and the value is
a file in the target directory having the same name.
// This accepts a glob and a target directory and converts it to a map // containing entries where the key is a matching file and the value is // a file in the target directory having the same name .
func GlobBatch(glob, target string) (map[string]string, error) {
	if matches, err := filepath.Glob(glob); err != nil {
		return nil, err
	} else {
		result := make(map[string]string)
		for _, m := range matches {
			result[m] = filepath.Join(target, filepath.Base(m))
		}
		return result, nil
	}
}
func GlobBatch ( glob , target string ) ( map [ string ] string , error ) { if matches , err := filepath . Glob ( glob ) ; err != nil { return nil , err } else { result := make ( map [ string ] string ) for _ , m := range matches { result [ m ] = filepath . Join ( target , filepath . Base ( m ) ) } return result , nil } }
This accepts a glob and a target directory and converts it to a map
containing entries where the key is a matching file and the value is
a file in the target directory having the same name.
This accepts a glob and a target directory and converts it to a map containing entries where the key is a matching file and the value is a file in the target directory having the same name .