Skip to main content

move

function

babashka.fs/move

(move [source target] [source target {:keys [:replace-existing :atomic-move]}])
Move or rename dir or file `source` to `target` dir or file via [Files/move](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#move(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)). If `target` is a directory, moves `source` under `target`. Never follows symbolic links. Returns `target` as `Path`. Options: * `replace-existing` - overwrite existing `target`, default `false` * `atomic-move` - watchers will only see complete `target` file, default `false`

No examples yet. Be the first to add one!