diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-15 20:45:07 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-15 20:45:07 -0400 |
commit | e4c987129963a95e3f9468a4780fa25ce6abf2fd (patch) | |
tree | c83a71b7b330464cea9cc444e513286d4c248baa | |
parent | 5fbed936bffa1dc06e5356a89f079fe27aa624b2 (diff) | |
download | nextcloud-server-e4c987129963a95e3f9468a4780fa25ce6abf2fd.tar.gz nextcloud-server-e4c987129963a95e3f9468a4780fa25ce6abf2fd.zip |
This should actually make the 'Shared' directory automatically everytime
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 1 | ||||
-rw-r--r-- | lib/util.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 55254ccd662..271819782b7 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -35,6 +35,7 @@ class OC_Filestorage_Shared extends OC_Filestorage { if (!OC_Filesystem::is_dir($this->datadir)) { OC_Filesystem::mkdir($this->datadir); } + $this->datadir .= "/"; } public function getInternalPath($path) { diff --git a/lib/util.php b/lib/util.php index 4b49d1319b9..f4ca879a9bc 100644 --- a/lib/util.php +++ b/lib/util.php @@ -54,7 +54,7 @@ class OC_Util { OC_Filesystem::mount($rootStorage,'/'); // 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/'); $CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root"; |