You are here

public function dropbox::copy in Dropbox Client 7.3

Same name and namespace in other branches
  1. 7.4 dropbox.php \dropbox::copy()
  2. 7 dropbox.php \dropbox::copy()
  3. 7.2 dropbox.php \dropbox::copy()

Copies a file or folder in dropbox to another location within dropbox.

Parameters

string $from The relative path to the file to be copied.:

string $to The relative path (Including file or folder name) to place to copy.:

string $root Either 'dropbox' or 'sandbox':

Return value

a response object

File

./dropbox.php, line 331

Class

dropbox

Code

public function copy($from, $to, $root = 'dropbox') {
  return $this
    ->_response_request('/fileops/copy?from_path=' . rawurlencode($from) . '&to_path=' . rawurlencode($to) . '&root=' . $root);
}