diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-02 16:12:57 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-02-23 18:02:33 +0100 |
commit | cfb7923e08ba1902fa5a5f72205cfcbb767b54ad (patch) | |
tree | 1641f6d5c32d3e4c822bac90ceab2d6f326797b6 /lib/private/Files/Node | |
parent | 692da9236bde4a0d6d78cf8ee44bd574fec5b623 (diff) | |
download | nextcloud-server-cfb7923e08ba1902fa5a5f72205cfcbb767b54ad.tar.gz nextcloud-server-cfb7923e08ba1902fa5a5f72205cfcbb767b54ad.zip |
store mountprovider for each mount in the mounts table
this enabled more fine grained filesystem setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Node')
-rw-r--r-- | lib/private/Files/Node/LazyFolder.php | 2 | ||||
-rw-r--r-- | lib/private/Files/Node/Root.php | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/private/Files/Node/LazyFolder.php b/lib/private/Files/Node/LazyFolder.php index 55421257886..bfdaeeccff7 100644 --- a/lib/private/Files/Node/LazyFolder.php +++ b/lib/private/Files/Node/LazyFolder.php @@ -38,7 +38,7 @@ class LazyFolder implements \OCP\Files\Folder { private $folderClosure; /** @var LazyFolder | null */ - private $folder = null; + protected $folder = null; /** * LazyFolder constructor. diff --git a/lib/private/Files/Node/Root.php b/lib/private/Files/Node/Root.php index 4a86207f25a..b5707c87543 100644 --- a/lib/private/Files/Node/Root.php +++ b/lib/private/Files/Node/Root.php @@ -29,6 +29,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ + namespace OC\Files\Node; use OC\Cache\CappedMemoryCache; @@ -87,8 +88,8 @@ class Root extends Folder implements IRootFolder { * @param IUserManager $userManager */ public function __construct($manager, - $view, - $user, + $view, + $user, IUserMountCache $userMountCache, ILogger $logger, IUserManager $userManager) { @@ -189,9 +190,9 @@ class Root extends Folder implements IRootFolder { /** * @param string $path - * @throws \OCP\Files\NotFoundException - * @throws \OCP\Files\NotPermittedException * @return Node + * @throws \OCP\Files\NotPermittedException + * @throws \OCP\Files\NotFoundException */ public function get($path) { $path = $this->normalizePath($path); @@ -212,8 +213,8 @@ class Root extends Folder implements IRootFolder { /** * @param string $targetPath - * @throws \OCP\Files\NotPermittedException * @return \OC\Files\Node\Node + * @throws \OCP\Files\NotPermittedException */ public function rename($targetPath) { throw new NotPermittedException(); @@ -225,8 +226,8 @@ class Root extends Folder implements IRootFolder { /** * @param string $targetPath - * @throws \OCP\Files\NotPermittedException * @return \OC\Files\Node\Node + * @throws \OCP\Files\NotPermittedException */ public function copy($targetPath) { throw new NotPermittedException(); |