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!

Please let me know if this is a valid change, or if there is a better option.