I have used copydir to copy a directory tree but it is deprecated. My directory contains some sub-directories, and some of those contain files and others contai
copydir
I finally copied using following code
This will copy the src folder from dist to build.
Hope this helps someone.