Skip to content
Snippets Groups Projects
Unverified Commit d27b0b07 authored by Robin Appelman's avatar Robin Appelman
Browse files

also use configured 'cache_path' for new chunking


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 647b185c
No related branches found
No related tags found
No related merge requests found
...@@ -58,10 +58,12 @@ class CacheMountProvider implements IMountProvider { ...@@ -58,10 +58,12 @@ class CacheMountProvider implements IMountProvider {
$cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user->getUID(); $cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user->getUID();
if (!file_exists($cacheDir)) { if (!file_exists($cacheDir)) {
mkdir($cacheDir, 0770, true); mkdir($cacheDir, 0770, true);
mkdir($cacheDir . '/uploads', 0770, true);
} }
return [ 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 { } else {
return []; return [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment