|
@@ 522-529 (lines=8) @@
|
| 519 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-move |
| 520 |
|
* |
| 521 |
|
*/ |
| 522 |
|
public function move(string $fromPath, string $toPath) |
| 523 |
|
{ |
| 524 |
|
//Response |
| 525 |
|
$response = $this->postToAPI('/files/move', ['from_path' => $fromPath, 'to_path' => $toPath]); |
| 526 |
|
|
| 527 |
|
//Make and Return the Model |
| 528 |
|
return $this->makeModelFromResponse($response); |
| 529 |
|
} |
| 530 |
|
|
| 531 |
|
/** |
| 532 |
|
* Copy a file or folder to a different location |
|
@@ 542-549 (lines=8) @@
|
| 539 |
|
* @link https://www.dropbox.com/developers/documentation/http/documentation#files-copy |
| 540 |
|
* |
| 541 |
|
*/ |
| 542 |
|
public function copy(string $fromPath, string $toPath) |
| 543 |
|
{ |
| 544 |
|
//Response |
| 545 |
|
$response = $this->postToAPI('/files/copy', ['from_path' => $fromPath, 'to_path' => $toPath]); |
| 546 |
|
|
| 547 |
|
//Make and Return the Model |
| 548 |
|
return $this->makeModelFromResponse($response); |
| 549 |
|
} |
| 550 |
|
|
| 551 |
|
/** |
| 552 |
|
* Restore a file to the specific version |