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
767 stars 19 forks source link

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

Closed Svetlitski closed 3 years ago

Svetlitski commented 3 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.