diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-17 18:05:52 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-18 00:21:16 +0300 |
commit | 84f464550ad632ecbcd1dbe4b9796053047622a7 (patch) | |
tree | ac9435f94175ea927305cee49407d3527c6a6d97 /lib/private/Files/Cache | |
parent | bf48c0b1b4bd3677a70aa0d7c8a50a5253c4cb5b (diff) |
some file scanner performance improvements
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r-- | lib/private/Files/Cache/Scanner.php | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |