copyFile() now creates output directories.