Skip to content

Instantly share code, notes, and snippets.

@ghostdogpr
Created July 14, 2019 07:09
Show Gist options
  • Save ghostdogpr/cb75a59a4ee6e28fa9d2510be5ab9026 to your computer and use it in GitHub Desktop.
Save ghostdogpr/cb75a59a4ee6e28fa9d2510be5ab9026 to your computer and use it in GitHub Desktop.
import java.nio.file.{ Files, Paths }
import zio.IO
def copyFile(path: String, destination: String): IO[Throwable, Unit] = IO.effect {
Files.copy(Paths.get(path), Paths.get(destination))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment