We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ddd41e + e2aa283 commit bccb69fCopy full SHA for bccb69f
1 file changed
apps/files_external/lib/Lib/Storage/SMB.php
@@ -628,9 +628,15 @@ public function opendir($path) {
628
}
629
630
public function getDirectoryContent($directory): \Traversable {
631
- $files = $this->getFolderContents($directory);
632
- foreach ($files as $file) {
633
- yield $this->getMetaDataFromFileInfo($file);
+ try {
+ $files = $this->getFolderContents($directory);
+ foreach ($files as $file) {
634
+ yield $this->getMetaDataFromFileInfo($file);
635
+ }
636
+ } catch (NotFoundException $e) {
637
+ return;
638
+ } catch (NotPermittedException $e) {
639
640
641
642
0 commit comments