Fix copy temporary folder

This is needed to copy just the contents of temporary folder, instead of the folder itself.
Hi, I am not sure why this would be needed: can you explain me what's the use case you are trying to solve?