@@ 67-75 (lines=9) @@ | ||
64 | * |
|
65 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy_v2 |
|
66 | */ |
|
67 | public function copy(string $fromPath, string $toPath): array |
|
68 | { |
|
69 | $parameters = [ |
|
70 | 'from_path' => $this->normalizePath($fromPath), |
|
71 | 'to_path' => $this->normalizePath($toPath), |
|
72 | ]; |
|
73 | ||
74 | return $this->rpcEndpointRequest('files/copy_v2', $parameters); |
|
75 | } |
|
76 | ||
77 | /** |
|
78 | * Create a folder at a given path. |
|
@@ 273-281 (lines=9) @@ | ||
270 | * |
|
271 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move_v2 |
|
272 | */ |
|
273 | public function move(string $fromPath, string $toPath): array |
|
274 | { |
|
275 | $parameters = [ |
|
276 | 'from_path' => $this->normalizePath($fromPath), |
|
277 | 'to_path' => $this->normalizePath($toPath), |
|
278 | ]; |
|
279 | ||
280 | return $this->rpcEndpointRequest('files/move_v2', $parameters); |
|
281 | } |
|
282 | ||
283 | /** |
|
284 | * The file should be uploaded in chunks if it size exceeds the 150 MB threshold |