Esempio n. 1
0
File: smb.php Progetto: evanjt/core
 public function mkdir($path)
 {
     $path = $this->buildPath($path);
     try {
         $this->share->mkdir($path);
         return true;
     } catch (Exception $e) {
         return false;
     }
 }
Esempio n. 2
0
 public function mkdir($path)
 {
     $path = $this->buildPath($path);
     try {
         $this->share->mkdir($path);
         return true;
     } catch (ConnectException $e) {
         throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
     } catch (Exception $e) {
         return false;
     }
 }