@@ 124-134 (lines=11) @@ | ||
121 | * |
|
122 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
|
123 | */ |
|
124 | public function copy($fromPath, $toPath) |
|
125 | { |
|
126 | $this->setupRequest([ |
|
127 | 'from_path' => $this->normalizePath($fromPath), |
|
128 | 'to_path' => $this->normalizePath($toPath), |
|
129 | ]); |
|
130 | ||
131 | $this->apiEndpoint = 'files/copy'; |
|
132 | ||
133 | return $this->doDropboxApiRequest(); |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * Create a folder at a given path. |
|
@@ 342-352 (lines=11) @@ | ||
339 | * |
|
340 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
|
341 | */ |
|
342 | public function move($fromPath, $toPath) |
|
343 | { |
|
344 | $this->setupRequest([ |
|
345 | 'from_path' => $this->normalizePath($fromPath), |
|
346 | 'to_path' => $this->normalizePath($toPath), |
|
347 | ]); |
|
348 | ||
349 | $this->apiEndpoint = 'files/move_v2'; |
|
350 | ||
351 | return $this->doDropboxApiRequest(); |
|
352 | } |
|
353 | ||
354 | /** |
|
355 | * The file should be uploaded in chunks if it size exceeds the 150 MB threshold |