tarka / xcp

An extended `cp`
GNU General Public License v3.0
717 stars 24 forks source link

Feature request: add new option for treating target dir as file #5

Open hwchen opened 5 years ago

hwchen commented 5 years ago

Hello,

I found xcp useful because it respects .gitignore. I'm using it to copy a repo without build artifacts.

After the initial copy, since the target directory exists it will then copy to a subdirectory.

I'd like to have a feature that treats the target dir as a file, like -T in cp. https://stackoverflow.com/questions/23698183/how-to-force-cp-to-overwrite-directory-instead-of-creating-another-one-inside

If this feature is acceptable, I'm happy to make a PR for it.