I am trying to copy every HTML file from an src folder to a dist folder. However, I should like to preserve the original folder structure and if the dist folder does not exist I
find _src -type f -name "*.html" -exec cp -t _dist --parents {} ";"
This will omit empty (no html-files) dirs. But if you need them, repeat without -name "*.html" but with -type d.