diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-06-16 14:40:21 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-06-16 14:40:21 -0400 |
commit | bf66563cda15acbe8f5b12be76fb5ba387a6798c (patch) | |
tree | f73267301216db63ac14b53dfdd233d11a4659f5 /lib | |
parent | 8603b0973f994be5fb3e585817c220b22e6d2c24 (diff) | |
download | nextcloud-server-bf66563cda15acbe8f5b12be76fb5ba387a6798c.tar.gz nextcloud-server-bf66563cda15acbe8f5b12be76fb5ba387a6798c.zip |
First version of shared storage provider - not functional
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 4 | ||||
-rw-r--r-- | lib/filesystem.php | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index c18ecd570db..199653e25e0 100644 --- a/lib/base.php +++ b/lib/base.php @@ -80,6 +80,7 @@ require_once('appconfig.php'); require_once('files.php'); require_once('filesystem.php'); require_once('filestorage.php'); +require_once('apps/files_sharing/sharedstorage.php'); require_once('log.php'); require_once('user.php'); require_once('group.php'); @@ -157,6 +158,9 @@ class OC_UTIL { // } OC_FILESYSTEM::mount($rootStorage,'/'); + $sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>$CONFIG_DATADIRECTORY)); + OC_FILESYSTEM::mount($sharedStorage,'MTGap/files/Test/'); + $CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root"; if( !is_dir( $CONFIG_DATADIRECTORY )){ mkdir( $CONFIG_DATADIRECTORY, 0755, true ); diff --git a/lib/filesystem.php b/lib/filesystem.php index 2b5c3a56b6e..897efaa140e 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -155,7 +155,7 @@ class OC_FILESYSTEM{ * @param string path * @return OC_FILESTORAGE */ - static private function getStorage($path){ + static public function getStorage($path){ $mountpoint=self::getMountPoint($path); if($mountpoint){ return self::$storages[$mountpoint]; |