@@ 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. |
|
@@ 248-256 (lines=9) @@ | ||
245 | * |
|
246 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
|
247 | */ |
|
248 | public function move(string $fromPath, string $toPath): array |
|
249 | { |
|
250 | $parameters = [ |
|
251 | 'from_path' => $this->normalizePath($fromPath), |
|
252 | 'to_path' => $this->normalizePath($toPath), |
|
253 | ]; |
|
254 | ||
255 | return $this->rpcEndpointRequest('files/move', $parameters); |
|
256 | } |
|
257 | ||
258 | /** |
|
259 | * Create a new file with the contents provided in the request. |