@@ 188-195 (lines=8) @@ | ||
185 | /** |
|
186 | * @inheritdoc |
|
187 | */ |
|
188 | public function write($path, $contents, array $config = array()) |
|
189 | { |
|
190 | $path = Util::normalizePath($path); |
|
191 | $this->assertAbsent($path); |
|
192 | $config = $this->prepareConfig($config); |
|
193 | ||
194 | return (bool) $this->getAdapter()->write($path, $contents, $config); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * @inheritdoc |
|
@@ 271-279 (lines=9) @@ | ||
268 | /** |
|
269 | * @inheritdoc |
|
270 | */ |
|
271 | public function update($path, $contents, array $config = array()) |
|
272 | { |
|
273 | $path = Util::normalizePath($path); |
|
274 | $config = $this->prepareConfig($config); |
|
275 | ||
276 | $this->assertPresent($path); |
|
277 | ||
278 | return (bool) $this->getAdapter()->update($path, $contents, $config); |
|
279 | } |
|
280 | ||
281 | /** |
|
282 | * @inheritdoc |
|
@@ 331-339 (lines=9) @@ | ||
328 | /** |
|
329 | * @inheritdoc |
|
330 | */ |
|
331 | public function rename($path, $newpath) |
|
332 | { |
|
333 | $path = Util::normalizePath($path); |
|
334 | $newpath = Util::normalizePath($newpath); |
|
335 | $this->assertPresent($path); |
|
336 | $this->assertAbsent($newpath); |
|
337 | ||
338 | return (bool) $this->getAdapter()->rename($path, $newpath); |
|
339 | } |
|
340 | ||
341 | /** |
|
342 | * @inheritdoc |
|
@@ 344-352 (lines=9) @@ | ||
341 | /** |
|
342 | * @inheritdoc |
|
343 | */ |
|
344 | public function copy($path, $newpath) |
|
345 | { |
|
346 | $path = Util::normalizePath($path); |
|
347 | $newpath = Util::normalizePath($newpath); |
|
348 | $this->assertPresent($path); |
|
349 | $this->assertAbsent($newpath); |
|
350 | ||
351 | return $this->getAdapter()->copy($path, $newpath); |
|
352 | } |
|
353 | ||
354 | /** |
|
355 | * @inheritdoc |
|
@@ 382-388 (lines=7) @@ | ||
379 | /** |
|
380 | * @inheritdoc |
|
381 | */ |
|
382 | public function createDir($dirname, array $config = array()) |
|
383 | { |
|
384 | $dirname = Util::normalizePath($dirname); |
|
385 | $config = $this->prepareConfig($config); |
|
386 | ||
387 | return (bool) $this->getAdapter()->createDir($dirname, $config); |
|
388 | } |
|
389 | ||
390 | /** |
|
391 | * @inheritdoc |