(string $from, string $to)
| 294 | } |
| 295 | |
| 296 | public function copy(string $from, string $to): bool |
| 297 | { |
| 298 | $src = $this->buildUrlForPath($from); |
| 299 | $dst = $this->buildUrlForPath($to); |
| 300 | if ($src === '' || $dst === '') { |
| 301 | return false; |
| 302 | } |
| 303 | $status = $this->request('COPY', $src, null, [ |
| 304 | 'Destination' => $dst, |
| 305 | 'Overwrite' => 'T', |
| 306 | ]); |
| 307 | return $status >= 200 && $status < 300; |
| 308 | } |
| 309 | |
| 310 | public function delete(string $path): bool |
| 311 | { |
no test coverage detected