summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2018-08-20 14:53:08 +0200
committerGitHub <noreply@github.com>2018-08-20 14:53:08 +0200
commitace570d72313ed9dc9583e4b2b924e00811b3f90 (patch)
treee4d279d284d25bdc7fb4a4d16e23784ecab9ec43 /apps
parenteea151fcecd1c93da4b94fa61dda0eb1abe34ca3 (diff)
parentb2685eb4ee6044c072c22a7551e39f22e016b7a9 (diff)
downloadnextcloud-server-ace570d72313ed9dc9583e4b2b924e00811b3f90.tar.gz
nextcloud-server-ace570d72313ed9dc9583e4b2b924e00811b3f90.zip
Merge pull request #10698 from nextcloud/smb-log-removed-entries-13
[13] log entries that are hidden during file listing
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 40fffce8342..230304575b4 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;
}
});