Currently if you --force a directory, copying will still fail with a file exists error. In theory it should be easy to support ignoring those errors when force is used, but I don't know how to handle the edge cases. For example, what happens if a file name conflicts with a directory name? Do we delete the directory before creating the file? That's scary to me.
Currently if you --force a directory, copying will still fail with a file exists error. In theory it should be easy to support ignoring those errors when force is used, but I don't know how to handle the edge cases. For example, what happens if a file name conflicts with a directory name? Do we delete the directory before creating the file? That's scary to me.
Need to check what cp does.