diff options
author | Roeland Douma <rullzer@users.noreply.github.com> | 2016-04-30 10:47:35 +0200 |
---|---|---|
committer | Roeland Douma <rullzer@users.noreply.github.com> | 2016-04-30 10:47:35 +0200 |
commit | 8f8ae963fd3b26c0940364b37f6c7660ef3de03e (patch) | |
tree | b553245eb54d7a3d1716a63ac2854054b08184d4 /lib/private/Files | |
parent | 023c8b0eacc243b2dd4763e6086fc87ce8b76126 (diff) | |
parent | e51467689d29ad68b7562d4b729ad5435f2ba54b (diff) | |
download | nextcloud-server-8f8ae963fd3b26c0940364b37f6c7660ef3de03e.tar.gz nextcloud-server-8f8ae963fd3b26c0940364b37f6c7660ef3de03e.zip |
Merge pull request #24207 from owncloud/cache-mount-provider
mount custom cache folder using mount providers
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Filesystem.php | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 61319a8cbaa..39c5fd3ab4a 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -441,8 +441,6 @@ class Filesystem { $home = \OC\Files\Filesystem::getStorage($user); - self::mountCacheDir($user); - // Chance to mount for other storages /** @var \OC\Files\Config\MountProviderCollection $mountConfigManager */ $mountConfigManager = \OC::$server->getMountProviderCollection(); @@ -479,23 +477,6 @@ class Filesystem { } /** - * Mounts the cache directory - * - * @param string $user user name - */ - private static function mountCacheDir($user) { - $cacheBaseDir = \OC::$server->getConfig()->getSystemValue('cache_path', ''); - if ($cacheBaseDir !== '') { - $cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user; - if (!file_exists($cacheDir)) { - mkdir($cacheDir, 0770, true); - } - // mount external cache dir to "/$user/cache" mount point - self::mount('\OC\Files\Storage\Local', array('datadir' => $cacheDir), '/' . $user . '/cache'); - } - } - - /** * get the default filesystem view * * @return View |