@@ 121-131 (lines=11) @@ | ||
118 | * |
|
119 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
|
120 | */ |
|
121 | public function copy($fromPath, $toPath) |
|
122 | { |
|
123 | $this->setupRequest([ |
|
124 | 'from_path' => $this->normalizePath($fromPath), |
|
125 | 'to_path' => $this->normalizePath($toPath), |
|
126 | ]); |
|
127 | ||
128 | $this->apiEndpoint = 'files/copy'; |
|
129 | ||
130 | return $this->doDropboxApiRequest(); |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * Create a folder at a given path. |
|
@@ 339-349 (lines=11) @@ | ||
336 | * |
|
337 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
|
338 | */ |
|
339 | public function move($fromPath, $toPath) |
|
340 | { |
|
341 | $this->setupRequest([ |
|
342 | 'from_path' => $this->normalizePath($fromPath), |
|
343 | 'to_path' => $this->normalizePath($toPath), |
|
344 | ]); |
|
345 | ||
346 | $this->apiEndpoint = 'files/move'; |
|
347 | ||
348 | return $this->doDropboxApiRequest(); |
|
349 | } |
|
350 | ||
351 | /** |
|
352 | * Create a new file with the contents provided in the request. |