|
@@ 47-55 (lines=9) @@
|
| 44 |
|
* |
| 45 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
| 46 |
|
*/ |
| 47 |
|
public function copy(string $fromPath, string $toPath): array |
| 48 |
|
{ |
| 49 |
|
$parameters = [ |
| 50 |
|
'from_path' => $this->normalizePath($fromPath), |
| 51 |
|
'to_path' => $this->normalizePath($toPath), |
| 52 |
|
]; |
| 53 |
|
|
| 54 |
|
return $this->rpcEndpointRequest('files/copy', $parameters); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* Create a folder at a given path. |
|
@@ 228-236 (lines=9) @@
|
| 225 |
|
* |
| 226 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
| 227 |
|
*/ |
| 228 |
|
public function move(string $fromPath, string $toPath): array |
| 229 |
|
{ |
| 230 |
|
$parameters = [ |
| 231 |
|
'from_path' => $this->normalizePath($fromPath), |
| 232 |
|
'to_path' => $this->normalizePath($toPath), |
| 233 |
|
]; |
| 234 |
|
|
| 235 |
|
return $this->rpcEndpointRequest('files/move', $parameters); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
/** |
| 239 |
|
* Create a new file with the contents provided in the request. |