aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-10-11 14:18:45 +0200
committerRobin Appelman <robin@icewind.nl>2017-10-11 14:18:45 +0200
commitd27b0b07bcf9ec9605840c5e66e736f54127c258 (patch)
tree9cca59be6ef6ef7743ea29415761a9f41919cc12 /lib
parent647b185c2b2dc393e3135adfe935e70253c9bef8 (diff)
downloadnextcloud-server-d27b0b07bcf9ec9605840c5e66e736f54127c258.tar.gz
nextcloud-server-d27b0b07bcf9ec9605840c5e66e736f54127c258.zip
also use configured 'cache_path' for new chunking
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Mount/CacheMountProvider.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Mount/CacheMountProvider.php b/lib/private/Files/Mount/CacheMountProvider.php
index 14ebb7c5843..782dcffc439 100644
--- a/lib/private/Files/Mount/CacheMountProvider.php
+++ b/lib/private/Files/Mount/CacheMountProvider.php
@@ -58,10 +58,12 @@ class CacheMountProvider implements IMountProvider {
$cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user->getUID();
if (!file_exists($cacheDir)) {
mkdir($cacheDir, 0770, true);
+ mkdir($cacheDir . '/uploads', 0770, true);
}
return [
- new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/cache', ['datadir' => $cacheDir, $loader])
+ new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/cache', ['datadir' => $cacheDir, $loader]),
+ new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir . '/uploads', $loader])
];
} else {
return [];