@@ 289-300 (lines=12) @@ | ||
286 | } |
|
287 | } |
|
288 | ||
289 | public function touch($path, $time = null) { |
|
290 | try { |
|
291 | if (!$this->file_exists($path)) { |
|
292 | $fh = $this->share->write($this->buildPath($path)); |
|
293 | fclose($fh); |
|
294 | return true; |
|
295 | } |
|
296 | return false; |
|
297 | } catch (ConnectException $e) { |
|
298 | throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e); |
|
299 | } |
|
300 | } |
|
301 | ||
302 | public function opendir($path) { |
|
303 | try { |
|
@@ 327-337 (lines=11) @@ | ||
324 | } |
|
325 | } |
|
326 | ||
327 | public function mkdir($path) { |
|
328 | $path = $this->buildPath($path); |
|
329 | try { |
|
330 | $this->share->mkdir($path); |
|
331 | return true; |
|
332 | } catch (ConnectException $e) { |
|
333 | throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e); |
|
334 | } catch (Exception $e) { |
|
335 | return false; |
|
336 | } |
|
337 | } |
|
338 | ||
339 | public function file_exists($path) { |
|
340 | try { |