|
@@ 62-70 (lines=9) @@
|
| 59 |
|
* |
| 60 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy_v2 |
| 61 |
|
*/ |
| 62 |
|
public function copy(string $fromPath, string $toPath): array |
| 63 |
|
{ |
| 64 |
|
$parameters = [ |
| 65 |
|
'from_path' => $this->normalizePath($fromPath), |
| 66 |
|
'to_path' => $this->normalizePath($toPath), |
| 67 |
|
]; |
| 68 |
|
|
| 69 |
|
return $this->rpcEndpointRequest('files/copy_v2', $parameters); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
/** |
| 73 |
|
* Create a folder at a given path. |
|
@@ 268-276 (lines=9) @@
|
| 265 |
|
* |
| 266 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move_v2 |
| 267 |
|
*/ |
| 268 |
|
public function move(string $fromPath, string $toPath): array |
| 269 |
|
{ |
| 270 |
|
$parameters = [ |
| 271 |
|
'from_path' => $this->normalizePath($fromPath), |
| 272 |
|
'to_path' => $this->normalizePath($toPath), |
| 273 |
|
]; |
| 274 |
|
|
| 275 |
|
return $this->rpcEndpointRequest('files/move_v2', $parameters); |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
/** |
| 279 |
|
* The file should be uploaded in chunks if it size exceeds the 150 MB threshold |