filter out blacklisted files in getDirectoryContent

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/20599/head
Robin Appelman 6 years ago
parent 3c2dd08264
commit 436908ee3f
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 2
      lib/private/Files/Storage/Common.php

@ -874,7 +874,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
if (is_resource($dh)) {
$basePath = rtrim($directory, '/');
while (($file = readdir($dh)) !== false) {
if (!Filesystem::isIgnoredDir($file)) {
if (!Filesystem::isIgnoredDir($file) && !Filesystem::isFileBlacklisted($file)) {
$childPath = $basePath . '/' . trim($file, '/');
yield $this->getMetaData($childPath);
}

Loading…
Cancel
Save