diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 40fffce834..230304575b 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -160,10 +160,15 @@ class SMB extends Common implements INotifyStorage { } return array_filter($files, function (IFileInfo $file) { try { + if ($file->isHidden()) { + \OC::$server->getLogger()->debug('hiding hidden file ' . $file->getName()); + } return !$file->isHidden(); } catch (ForbiddenException $e) { + \OC::$server->getLogger()->logException($e, ['level' => Util::DEBUG, 'message' => 'Hiding forbidden entry ' . $file->getName()]); return false; } catch (NotFoundException $e) { + \OC::$server->getLogger()->logException($e, ['level' => Util::DEBUG, 'message' => 'Hiding not found entry ' . $file->getName()]); return false; } });