Skip to main content

copy

function

babashka.fs/copy

(copy [src dest] [src dest {:keys [replace-existing copy-attributes nofollow-links]}])
Copies `src` file to `dest` dir or file using [Files/copy](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#copy(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)). Options: * `:replace-existing` * `:copy-attributes` * [`:nofollow-links`](/README.md#nofollow-links) (used to determine to copy symbolic link itself or not). Returns `dest` as path.

No examples yet. Be the first to add one!