fix: catch NotPermittedException in Folder.nodeExists

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/48455/head
Daniel Kesselberg 2024-09-30 13:54:40 +07:00 committed by Daniel
parent 3db20c8b00
commit fbaa4cc5e0
1 changed files with 1 additions and 1 deletions

@ -111,7 +111,7 @@ class Folder extends Node implements \OCP\Files\Folder {
try {
$this->get($path);
return true;
} catch (NotFoundException $e) {
} catch (NotFoundException|NotPermittedException) {
return false;
}
}