diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-04-21 14:48:08 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-29 17:41:09 +0200 |
commit | e51467689d29ad68b7562d4b729ad5435f2ba54b (patch) | |
tree | 8a6fbd34c8a923fc87173957cd2b178ccda89c0d /lib/private/Files | |
parent | f79a81258e5a1ecc5563b6d7bcf0a161de7ec44f (diff) | |
download | nextcloud-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.php | 19 |
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 |