You can implement your `copy` method as following ...
# stdlib
i
You can implement your
copy
method as following (given that the first argument is always a relative path):
Copy code
fun copy(relativePath: String, sourceDir: File, targetDir: File) =
  sourceDir.resolve(relativePath).copyRecursively(targetDir.resolve(relativePath), overwrite = true)