|
@@ 70-78 (lines=9) @@
|
| 67 |
|
* |
| 68 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy_v2 |
| 69 |
|
*/ |
| 70 |
|
public function copy(string $fromPath, string $toPath): array |
| 71 |
|
{ |
| 72 |
|
$parameters = [ |
| 73 |
|
'from_path' => $this->normalizePath($fromPath), |
| 74 |
|
'to_path' => $this->normalizePath($toPath), |
| 75 |
|
]; |
| 76 |
|
|
| 77 |
|
return $this->rpcEndpointRequest('files/copy_v2', $parameters); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
/** |
| 81 |
|
* Create a folder at a given path. |
|
@@ 276-284 (lines=9) @@
|
| 273 |
|
* |
| 274 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move_v2 |
| 275 |
|
*/ |
| 276 |
|
public function move(string $fromPath, string $toPath): array |
| 277 |
|
{ |
| 278 |
|
$parameters = [ |
| 279 |
|
'from_path' => $this->normalizePath($fromPath), |
| 280 |
|
'to_path' => $this->normalizePath($toPath), |
| 281 |
|
]; |
| 282 |
|
|
| 283 |
|
return $this->rpcEndpointRequest('files/move_v2', $parameters); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* The file should be uploaded in chunks if it size exceeds the 150 MB threshold |