|
@@ 50-58 (lines=9) @@
|
| 47 |
|
* |
| 48 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
| 49 |
|
*/ |
| 50 |
|
public function copy(string $fromPath, string $toPath): array |
| 51 |
|
{ |
| 52 |
|
$parameters = [ |
| 53 |
|
'from_path' => $this->normalizePath($fromPath), |
| 54 |
|
'to_path' => $this->normalizePath($toPath), |
| 55 |
|
]; |
| 56 |
|
|
| 57 |
|
return $this->rpcEndpointRequest('files/copy', $parameters); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* Create a folder at a given path. |
|
@@ 256-264 (lines=9) @@
|
| 253 |
|
* |
| 254 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
| 255 |
|
*/ |
| 256 |
|
public function move(string $fromPath, string $toPath): array |
| 257 |
|
{ |
| 258 |
|
$parameters = [ |
| 259 |
|
'from_path' => $this->normalizePath($fromPath), |
| 260 |
|
'to_path' => $this->normalizePath($toPath), |
| 261 |
|
]; |
| 262 |
|
|
| 263 |
|
return $this->rpcEndpointRequest('files/move', $parameters); |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
/** |
| 267 |
|
* Create a new file with the contents provided in the request. |