Moves a file or folder to a new location.

Description

Moves a file or folder to a new location.

Usage

1
2
drop_move(from_path = NULL, to_path = NULL, root = "auto",
  verbose = FALSE, dtoken = get_dropbox_token())

Arguments

from_path

Source file or folder

to_path

destination file or folder

root

This is required. The root relative to which path is specified. Valid values are auto (recommended and also the default), sandbox, and dropbox.

verbose

By default verbose output is FALSE. Set to TRUE if you need to troubleshoot any output or grab additional parameters.

dtoken

The Dropbox token generated by drop_auth. rdrop2 will try to automatically locate your local credential cache and use them. However, if the credentials are not found, the function will initiate a new authentication request. You can override this by pointing to a different location where your credentials are stored.

Examples

1
2
3
4
5
6
7
## Not run: 
write.csv(mtcars, file = "mt.csv")
drop_upload("mt.csv")
drop_create("drop_test2")
drop_move("mt.csv", "drop_test2/mt.csv")

## End(Not run)