otiai10 / copy

Go copy directory recursively
https://pkg.go.dev/github.com/otiai10/copy
MIT License
722 stars 115 forks source link

Option to copy two or more files simultaneous #81

Closed ManuelReschke closed 1 year ago

ManuelReschke commented 2 years ago

hi, is it possible to add an option to copy two or more files simultaneous? I think this would be an amazing performance boost on the most systems.

What do you think?

Techno-Fox commented 2 years ago

Are you talking about passing multiple sources, and destinations at a time? Or using go routines for each?

ManuelReschke commented 2 years ago

I talk about go routines. For example, if you copy the path /xy/ you know the folder contains 10 files. And now you copy X files simultaneously with goroutines. Most systems use SSDs and this would increase the overall performance extreme.