Skip to content
Snippets Groups Projects
Commit 544963f4 authored by Robin Appelman's avatar Robin Appelman
Browse files

Allow adding object stores with the files_external mount config

parent 159b603d
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,10 @@ class OC_Mount_Config {
$loader = \OC\Files\Filesystem::getLoader();
$manager = \OC\Files\Filesystem::getMountManager();
foreach ($mountPoints as $mountPoint => $options) {
if (isset($options['options']['objectstore'])) {
$objectClass = $options['options']['objectstore']['class'];
$options['options']['objectstore'] = new $objectClass($options['options']['objectstore']);
}
if ($options['personal']){
$mount = new \OCA\Files_External\PersonalMount($options['class'], $mountPoint, $options['options'], $loader);
} else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment