Skip to content

Commit

Permalink
fix: catch NotPermittedException in Folder.nodeExists
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Sep 30, 2024
1 parent 3db20c8 commit fbaa4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Node/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function nodeExists($path) {
try {
$this->get($path);
return true;
} catch (NotFoundException $e) {
} catch (NotFoundException|NotPermittedException) {
return false;
}
}
Expand Down

0 comments on commit fbaa4cc

Please sign in to comment.