Skip to content

Commit

Permalink
remove loader ChunkLocationProvider.php (#40719)
Browse files Browse the repository at this point in the history
  • Loading branch information
pako81 committed Apr 3, 2023
1 parent 38c2cd7 commit a739b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Upload/ChunkLocationProvider.php
Expand Up @@ -66,15 +66,15 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
// than in the "local" external storage and this would cause trouble when applying quota.
$cacheDir = $user->getHome();
return [
new MountPoint(Local::class, '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir . '/uploads'], $loader)
new MountPoint(Local::class, '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir . '/uploads'])
];
} else {
$cacheDir = \rtrim($chunkBaseDir, '/') . '/' . $user->getUID();
if (!\file_exists($cacheDir)) {
\mkdir($cacheDir, 0770, true);
}
return [
new MountPoint(Local::class, '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir], $loader)
new MountPoint(Local::class, '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir])
];
}
}
Expand Down

0 comments on commit a739b40

Please sign in to comment.