/** * Get file contents * * @param string $path file path * @return string|false * @author Dmitry (dio) Levashov **/ protected function _getContents($path) { $contents = ''; try { $contents = $this->dropbox->getFile($path); } catch (Dropbox_Exception $e) { return $this->setError('Dropbox error: ' . $e->getMessage()); } return $contents; }