mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fmt
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
89919b0e24
commit
70c37c2717
3 changed files with 2 additions and 6 deletions
|
|
@ -23,7 +23,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace OC\Files\Node;
|
||||
|
||||
|
||||
use OCP\Constants;
|
||||
use OCP\Files\IRootFolder;
|
||||
use OCP\Files\NotFoundException;
|
||||
|
|
@ -36,7 +35,7 @@ class LazyUserFolder extends LazyFolder {
|
|||
public function __construct(IRootFolder $rootFolder, IUser $user) {
|
||||
$this->rootFolder = $rootFolder;
|
||||
$this->user = $user;
|
||||
parent::__construct(function() use ($user) {
|
||||
parent::__construct(function () use ($user) {
|
||||
try {
|
||||
return $this->rootFolder->get('/' . $user->getUID() . '/files');
|
||||
} catch (NotFoundException $e) {
|
||||
|
|
@ -54,6 +53,4 @@ class LazyUserFolder extends LazyFolder {
|
|||
public function get($path) {
|
||||
return $this->rootFolder->get('/' . $this->user->getUID() . '/files/' . rtrim($path, '/'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ use OC\Files\Mount\MountPoint;
|
|||
use OC\Files\View;
|
||||
use OC\Hooks\PublicEmitter;
|
||||
use OC\User\NoUserException;
|
||||
use OCP\Constants;
|
||||
use OCP\EventDispatcher\IEventDispatcher;
|
||||
use OCP\Files\Config\IUserMountCache;
|
||||
use OCP\Files\Events\Node\FilesystemTornDownEvent;
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@ class SetupManager {
|
|||
];
|
||||
|
||||
foreach ($genericEvents as $genericEvent) {
|
||||
$this->eventDispatcher->addListener($genericEvent, function($event) {
|
||||
$this->eventDispatcher->addListener($genericEvent, function ($event) {
|
||||
$this->cache->clear();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue