Learn R Programming

rdrop2 (version 0.6)

drop_move: Moves a file or folder to a new location.

Description

Moves a file or folder to a new location.

Usage

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 auth

Examples

Run this code
write.csv(mtcars, file = "mt.csv")
drop_upload("mt.csv")
drop_create("drop_test2")
drop_move("mt.csv", "drop_test2/mt.csv")

Run the code above in your browser using DataLab