Skip to content
Snippets Groups Projects
Commit e4c98712 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

This should actually make the 'Shared' directory automatically everytime

parent 5fbed936
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ class OC_Filestorage_Shared extends OC_Filestorage { ...@@ -35,6 +35,7 @@ class OC_Filestorage_Shared extends OC_Filestorage {
if (!OC_Filesystem::is_dir($this->datadir)) { if (!OC_Filesystem::is_dir($this->datadir)) {
OC_Filesystem::mkdir($this->datadir); OC_Filesystem::mkdir($this->datadir);
} }
$this->datadir .= "/";
} }
public function getInternalPath($path) { public function getInternalPath($path) {
......
...@@ -54,7 +54,7 @@ class OC_Util { ...@@ -54,7 +54,7 @@ class OC_Util {
OC_Filesystem::mount($rootStorage,'/'); OC_Filesystem::mount($rootStorage,'/');
// TODO add this storage provider in a proper way // TODO add this storage provider in a proper way
$sharedStorage = OC_Filesystem::createStorage('shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared/')); $sharedStorage = OC_Filesystem::createStorage('shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared'));
OC_Filesystem::mount($sharedStorage,'/'.OC_User::getUser().'/files/Shared/'); OC_Filesystem::mount($sharedStorage,'/'.OC_User::getUser().'/files/Shared/');
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root"; $CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment