Created
July 14, 2019 07:09
-
-
Save ghostdogpr/cb75a59a4ee6e28fa9d2510be5ab9026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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