Merge pull request #10698 from nextcloud/smb-log-removed-entries-13
[13] log entries that are hidden during file listing
This commit is contained in:
commit
ace570d723
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue