exposed copyFile function

I sometimes need to copy individual files, but the copyFile function is
not exposed.

Also, added colons and brackets as my linter was going mental!