Svetlitski / fcp

A significantly faster alternative to the classic Unix cp(1) command, copying large files and directories in a fraction of the time.
BSD 3-Clause "New" or "Revised" License
734 stars 17 forks source link

Exit with an error when multiple sources have the same file name #10

Closed Svetlitski closed 2 years ago

Svetlitski commented 2 years ago

Previously when presented with this scenario, fcp would attempt to copy both sources to the same destination, with essentially undefined results as multiple threads would concurrently write to the same file. Now we check for duplicated file names before any copying is performed, resolving this issue. Corresponding test-cases have been added.