Browse Source
also use configured 'cache_path' for new chunking
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/6812/head
Robin Appelman
8 years ago
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with
3 additions and
1 deletions
-
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 []; |
|
|
|
|