@@ 28-41 (lines=14) @@ | ||
25 | ]); |
|
26 | } |
|
27 | ||
28 | public function move(string $path, string $newPath): array |
|
29 | { |
|
30 | $path = $this->normalizePath($path); |
|
31 | $newPath = $this->normalizePath($newPath); |
|
32 | ||
33 | $response = $this->client->post('files/move', [ |
|
34 | 'json' => [ |
|
35 | 'from_path' => $path, |
|
36 | 'to_path' => $newPath, |
|
37 | ] |
|
38 | ]); |
|
39 | ||
40 | return json_decode($response->getBody(), true); |
|
41 | } |
|
42 | ||
43 | public function copy(string $path, string $newPath): array |
|
44 | { |
|
@@ 43-56 (lines=14) @@ | ||
40 | return json_decode($response->getBody(), true); |
|
41 | } |
|
42 | ||
43 | public function copy(string $path, string $newPath): array |
|
44 | { |
|
45 | $path = $this->normalizePath($path); |
|
46 | $newPath = $this->normalizePath($newPath); |
|
47 | ||
48 | $response = $this->client->post('files/copy', [ |
|
49 | 'json' => [ |
|
50 | 'from_path' => $path, |
|
51 | 'to_path' => $newPath, |
|
52 | ] |
|
53 | ]); |
|
54 | ||
55 | return json_decode($response->getBody(), true); |
|
56 | } |
|
57 | ||
58 | public function delete(string $path): array |
|
59 | { |