|
@@ 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. |
|
@@ 214-222 (lines=9) @@
|
| 211 |
|
* |
| 212 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
| 213 |
|
*/ |
| 214 |
|
public function move(string $fromPath, string $toPath): array |
| 215 |
|
{ |
| 216 |
|
$parameters = [ |
| 217 |
|
'from_path' => $this->normalizePath($fromPath), |
| 218 |
|
'to_path' => $this->normalizePath($toPath), |
| 219 |
|
]; |
| 220 |
|
|
| 221 |
|
return $this->rpcEndpointRequest('files/move', $parameters); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
/** |
| 225 |
|
* Create a new file with the contents provided in the request. |