@@ 49-57 (lines=9) @@ | ||
46 | * |
|
47 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
|
48 | */ |
|
49 | public function copy(string $fromPath, string $toPath): array |
|
50 | { |
|
51 | $parameters = [ |
|
52 | 'from_path' => $this->normalizePath($fromPath), |
|
53 | 'to_path' => $this->normalizePath($toPath), |
|
54 | ]; |
|
55 | ||
56 | return $this->rpcEndpointRequest('files/copy', $parameters); |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * Create a folder at a given path. |
|
@@ 255-263 (lines=9) @@ | ||
252 | * |
|
253 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move_v2 |
|
254 | */ |
|
255 | public function move(string $fromPath, string $toPath): array |
|
256 | { |
|
257 | $parameters = [ |
|
258 | 'from_path' => $this->normalizePath($fromPath), |
|
259 | 'to_path' => $this->normalizePath($toPath), |
|
260 | ]; |
|
261 | ||
262 | return $this->rpcEndpointRequest('files/move_v2', $parameters); |
|
263 | } |
|
264 | ||
265 | /** |
|
266 | * Get max chunk size that can be sent to dropbox api. |