Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dannyvankooten/gozer
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Mar 5, 2024
2 parents 3e91e76 + 067857a commit 6ddd7c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ func copyFile(src string, d fs.DirEntry, dest string) error {

func copyDirRecursively(src string, dst string) error {
return filepath.WalkDir(src, func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}
outpath := dst + strings.TrimPrefix(path, src)
return copyFile(path, d, outpath)
})
Expand Down

0 comments on commit 6ddd7c9

Please sign in to comment.