This code copies a folder content in an other folder that have to exist already.
It shows a progress dialog with percent completed (calculed over size) and a fraction of action done (calculated with number of files it have to copy and folders it have to create).
If a file can't be copied the function will make a logfile in the first avaiable place counting dest folder, original folder and @workingdir.
I posted something similar time ago, but I needed this again I improved it... so it is