file_move {fs} | R Documentation |
Move or rename files
Description
Compared to file.rename file_move()
always fails if it is unable to move
a file, rather than signaling a Warning and returning an error code.
Usage
file_move(path, new_path)
Arguments
path |
A character vector of one or more paths. |
new_path |
New file path. If Should either be the same length as |
Value
The new path (invisibly).
Examples
file_create("foo")
file_move("foo", "bar")
file_exists(c("foo", "bar"))
file_delete("bar")
[Package fs version 1.6.4 Index]