public function dropbox::copy in Dropbox Client 7
Same name and namespace in other branches
- 7.4 dropbox.php \dropbox::copy()
- 7.2 dropbox.php \dropbox::copy()
- 7.3 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 329
Class
Code
public function copy($from, $to, $root = 'dropbox') {
return $this
->_response_request('/fileops/copy?from_path=' . rawurlencode($from) . '&to_path=' . rawurlencode($to) . '&root=' . $root);
}