tests/platforms: copy files from sample app recursively

The cordova platform does have a directory.