/** * Create dir and return created dir path or false on failed * * @param string $path parent dir path * @param string $name new directory name * @return string|bool * @author Dmitry (dio) Levashov **/ protected function _mkdir($path, $name) { $path = $this->_normpath($path . '/' . $name); try { $this->dropbox->createFolder($path); } catch (Dropbox_Exception $e) { return $this->setError('Dropbox error: ' . $e->getMessage()); } $this->deltaCheck(); return $path; }