also use configured 'cache_path' for new chunking

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-10-11 14:18:45 +02:00
parent 980ba0e904
commit 1c315a2a8a
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 3 additions and 1 deletions

View File

@ -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 [];