Find *.css and copy task failed

In the above screenshot saw the files are copied after I executed the command:

find /var/www/html/ecommerce -name *.css -type f -exec cp {} /ecommerce ;

But the task is showing as failed. What did I miss?

You have to copy *.css files with their parent directories. That’s why task got failed.

Ah!! Okay! I I should be extra careful next time. Thanks for the clarification!