79237189

Date: 2024-11-29 13:04:38
Score: 2.5
Natty:
Report link

I found a method based on @Bodo's solution involving find:

cd source
find . -type d -exec mkdir -p ../dest/{} \;
find . -type f -exec cp {} ../dest/{} \;

Basically just creates the directories first if they don't exist, then uses the find method to copy them.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Bodo's
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AVS Origami