// Get returns all files, which can be found under srcRoot
Get returns all files, which can be found under srcRoot
// Get returns all files which can be found under srcRoot
func (fc *FolderCopier) Get() ([]string, error) {
	var filepaths []string
	filepath.Walk(
		fc.srcRoot,
		func(path string, info os.FileInfo, err error) error {
			if !info.IsDir() {
				filepaths = append(filepaths, path)
			}
			return err
		},
	)
	return filepaths, nil
}
func ( fc * FolderCopier ) Get ( ) ( [ ] string , error ) { var filepaths [ ] string filepath . Walk ( fc . srcRoot , func ( path string , info os . FileInfo , err error ) error { if ! info . IsDir ( ) { filepaths = append ( filepaths , path ) } return err } , ) return filepaths , nil }
Get returns all files, which can be found under srcRoot
Get returns all files which can be found under srcRoot