Esempio n. 1
0
File: smb.php Progetto: evanjt/core
 public function touch($path, $time = null)
 {
     if (!$this->file_exists($path)) {
         $fh = $this->share->write($this->buildPath($path));
         fclose($fh);
         return true;
     }
     return false;
 }
Esempio n. 2
0
 public function touch($path, $time = null)
 {
     try {
         if (!$this->file_exists($path)) {
             $fh = $this->share->write($this->buildPath($path));
             fclose($fh);
             return true;
         }
         return false;
     } catch (ConnectException $e) {
         throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
     }
 }