Merge pull request #6812 from nextcloud/upload-cache-path

also use configured 'cache_path' for new chunking
This commit is contained in:
Roeland Jago Douma 2017-10-15 21:42:41 +02:00 committed by GitHub
commit a5912cbe33
1 changed files with 3 additions and 1 deletions

View File

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