dropbox_copy: Function to copy files or folder within Dropbox.

Description Usage Arguments Value See Also Examples

Description

Use this function to copy files or folders within your Dropbox. Destination must be a folder otherwise the function will return an error.

Usage

1
2
  dropbox_copy(cred, from_path = NULL, to_path = NULL,
    curl = getCurlHandle(), ...)

Arguments

cred

An object of class DropboxCredentials with Dropobox specific credentials.

from_path

Path to file or folder to be copied, relative to dropbox root.

to_path

Path to destination, including the new name for the file or folder, relative to dropbox root.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

optional additional curl options (debugging tools mostly)..

Value

Message with success or error.

See Also

dropbox_move dropbox_create_folder

related: dropbox_move

Examples

1
2
3
4
5
## Not run: 
> dropbox_copy(cred, 'copy.txt', 'Public')
/copy.txt succcessfully copied to /Public/copy.txt on Thu, 29 Mar 2012 20:37:51 +0000

## End(Not run)

karthik/rDrop documentation built on May 20, 2019, 7:22 a.m.