@@ 40-48 (lines=9) @@ | ||
37 | * |
|
38 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
|
39 | */ |
|
40 | public function copy(string $path, string $newPath): array |
|
41 | { |
|
42 | $parameters = [ |
|
43 | 'from_path' => $this->normalizePath($path), |
|
44 | 'to_path' => $this->normalizePath($newPath), |
|
45 | ]; |
|
46 | ||
47 | return $this->requestRPC('files/copy', $parameters); |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Create a folder at a given path.Create a folder at a given path. |
|
@@ 186-194 (lines=9) @@ | ||
183 | * |
|
184 | * @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
|
185 | */ |
|
186 | public function move(string $path, string $newPath): array |
|
187 | { |
|
188 | $parameters = [ |
|
189 | 'from_path' => $this->normalizePath($path), |
|
190 | 'to_path' => $this->normalizePath($newPath), |
|
191 | ]; |
|
192 | ||
193 | return $this->requestRPC('files/move', $parameters); |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * Create a new file with the contents provided in the request. |