Two things to look out for.
1. This script is ran from the photopost directory.
2. make sure in the import script to use the full server path to your photopost and vbgallery directories as asked and they are 777 at every level
A Copy error is usually indicative of permissions or path issues.