func CopyFiles(appFiles []AppFile, fromDir, toDir string) (err error) { if err != nil { return } for _, file := range appFiles { fromPath := filepath.Join(fromDir, file.Path) toPath := filepath.Join(toDir, file.Path) err = fileutils.CopyFilePaths(fromPath, toPath) if err != nil { return } } return }
func CopyFiles(appFiles []AppFileFields, fromDir, toDir string) (err error) { if err != nil { return } for _, file := range appFiles { fromPath := filepath.Join(fromDir, file.Path) toPath := filepath.Join(toDir, file.Path) err = fileutils.CopyFilePaths(fromPath, toPath) if err != nil { return } fileutils.SetExecutableBitsWithPaths(toPath, fromPath) } return }