// Copy everything by using the FolderCopier
Copy everything by using the FolderCopier
// Copy everything by using the FolderCopier
func Copy(fc FolderCopier) []error {
	var errs []error
	files, err := fc.Get()
	if err != nil {
		errs = append(errs, err)
	}
	for _, f := range files {
		dst, err := fc.MakeDst(f)
		if err != nil {
			errs = append(errs, err)
		}
		err = fc.Copy(f, dst)
		if err != nil {
			errs = append(errs, err)
		}
	}
	return errs
}
func Copy ( fc FolderCopier ) [ ] error { var errs [ ] error files , err := fc . Get ( ) if err != nil { errs = append ( errs , err ) } for _ , f := range files { dst , err := fc . MakeDst ( f ) if err != nil { errs = append ( errs , err ) } err = fc . Copy ( f , dst ) if err != nil { errs = append ( errs , err ) } } return errs }
Copy everything by using the FolderCopier
Copy everything by using the FolderCopier