コード例 #1
0
ファイル: smb.php プロジェクト: evanjt/core
 public function mkdir($path)
 {
     $path = $this->buildPath($path);
     try {
         $this->share->mkdir($path);
         return true;
     } catch (Exception $e) {
         return false;
     }
 }
コード例 #2
0
ファイル: SMB.php プロジェクト: GitHubUser4234/core
 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;
     }
 }