When attempting to copy a non-empty directory in Ubuntu using the cp command, you will be presented with the following error message:
cp: omitting directory mydirectory
To force the copy cp command to handle the non-empty directory correctly, you need to force the recursive switch using -R
So you should be entering:
cp -R mydirectory targetdirectory
And now you know.