| @@ 392-403 (lines=12) @@ | ||
| 389 | } |
|
| 390 | } |
|
| 391 | ||
| 392 | public function touch($path, $time = null) { |
|
| 393 | try { |
|
| 394 | if (!$this->file_exists($path)) { |
|
| 395 | $fh = $this->share->write($this->buildPath($path)); |
|
| 396 | fclose($fh); |
|
| 397 | return true; |
|
| 398 | } |
|
| 399 | return false; |
|
| 400 | } catch (ConnectException $e) { |
|
| 401 | throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e); |
|
| 402 | } |
|
| 403 | } |
|
| 404 | ||
| 405 | public function opendir($path) { |
|
| 406 | try { |
|
| @@ 430-440 (lines=11) @@ | ||
| 427 | } |
|
| 428 | } |
|
| 429 | ||
| 430 | public function mkdir($path) { |
|
| 431 | $path = $this->buildPath($path); |
|
| 432 | try { |
|
| 433 | $this->share->mkdir($path); |
|
| 434 | return true; |
|
| 435 | } catch (ConnectException $e) { |
|
| 436 | throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e); |
|
| 437 | } catch (Exception $e) { |
|
| 438 | return false; |
|
| 439 | } |
|
| 440 | } |
|
| 441 | ||
| 442 | public function file_exists($path) { |
|
| 443 | try { |
|