why do i get this error when i try to copy a directory or a file in linux?

cp: omitting directory