summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-04-21 14:48:08 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-29 17:41:09 +0200
commite51467689d29ad68b7562d4b729ad5435f2ba54b (patch)
tree8a6fbd34c8a923fc87173957cd2b178ccda89c0d /lib/private/Files
parentf79a81258e5a1ecc5563b6d7bcf0a161de7ec44f (diff)
downloadnextcloud-server-e51467689d29ad68b7562d4b729ad5435f2ba54b.tar.gz
nextcloud-server-e51467689d29ad68b7562d4b729ad5435f2ba54b.zip
mount custom cache folder using mount providers
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Filesystem.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index 7cd1f56071c..d1162324cbb 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -423,8 +423,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();
@@ -461,23 +459,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