(string $path, string $data, int $flags = 0)
| 220 | } |
| 221 | |
| 222 | public function write(string $path, string $data, int $flags = 0): bool |
| 223 | { |
| 224 | if (!$this->ensureParentExists($path)) { |
| 225 | return false; |
| 226 | } |
| 227 | $url = $this->buildUrlForPath($path); |
| 228 | if ($url === '') { |
| 229 | return false; |
| 230 | } |
| 231 | $status = $this->request('PUT', $url, $data, []); |
| 232 | return $status >= 200 && $status < 300; |
| 233 | } |
| 234 | |
| 235 | public function writeStream(string $path, $stream, ?int $length = null, ?string $mimeType = null): bool |
| 236 | { |
no test coverage detected