From 84f464550ad632ecbcd1dbe4b9796053047622a7 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 17 Mar 2022 16:05:52 +0100 Subject: some file scanner performance improvements Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Scanner.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/private/Files/Cache') diff --git a/lib/private/Files/Cache/Scanner.php b/lib/private/Files/Cache/Scanner.php index bd8db2c8a12..af412dd129b 100644 --- a/lib/private/Files/Cache/Scanner.php +++ b/lib/private/Files/Cache/Scanner.php @@ -36,7 +36,6 @@ namespace OC\Files\Cache; use Doctrine\DBAL\Exception; -use OC\Files\Filesystem; use OC\Files\Storage\Wrapper\Jail; use OC\Files\Storage\Wrapper\Encoding; use OC\Hooks\BasicEmitter; @@ -140,8 +139,8 @@ class Scanner extends BasicEmitter implements IScanner { return null; } } - // only proceed if $file is not a partial file nor a blacklisted file - if (!self::isPartialFile($file) and !Filesystem::isFileBlacklisted($file)) { + // only proceed if $file is not a partial file, blacklist is handled by the storage + if (!self::isPartialFile($file)) { //acquire a lock if ($lock) { -- cgit v1.2.3