I took this from `deploy`. The distinction I am making is that a resource is not necessarily on the filesystem locally, but `copyFile` is just a special case of `copyResource` so it could use the latter to do its work instead.