I am using a script to copy directories to a specified location. When I run
cp -r ~/.ipython ~/some/path/.ipython the
.ipython dir is copied as expected to the specified location. But when I run this command again
~/some/path/.ipython/.ipython is created.
I understand that this is recursive, but what command copies a dir while for subsequent calls of that command prevent a dir is recursively created inside that same dir?