use OC_Connector_Sabre_Client
This commit is contained in:
parent
a5a1d929ca
commit
8353517969
|
@ -36,18 +36,18 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
|
||||||
$this->root.='/';
|
$this->root.='/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$capath = '';
|
|
||||||
if($caview = \OCP\Files::getStorage('files_external')) {
|
|
||||||
$capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("");
|
|
||||||
}
|
|
||||||
$settings = array(
|
$settings = array(
|
||||||
'baseUri' => $this->createBaseUri(),
|
'baseUri' => $this->createBaseUri(),
|
||||||
'userName' => $this->user,
|
'userName' => $this->user,
|
||||||
'password' => $this->password,
|
'password' => $this->password,
|
||||||
'capath' => $capath,
|
|
||||||
);
|
);
|
||||||
$this->client = new Sabre_DAV_Client($settings);
|
|
||||||
|
|
||||||
|
$this->client = new OC_Connector_Sabre_Client($settings);
|
||||||
|
|
||||||
|
if($caview = \OCP\Files::getStorage('files_external')) {
|
||||||
|
$this->client->setCurlSettings(array(CURLOPT_CAPATH => \OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath(""),
|
||||||
|
CURLOPT_SSL_VERIFYPEER => false));
|
||||||
|
}
|
||||||
//create the root folder if necesary
|
//create the root folder if necesary
|
||||||
$this->mkdir('');
|
$this->mkdir('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue