diff --git a/lib/private/Files/ObjectStore/NoopScanner.php b/lib/private/Files/ObjectStore/NoopScanner.php index dc65e924b9d5..1e325a44d0fb 100644 --- a/lib/private/Files/ObjectStore/NoopScanner.php +++ b/lib/private/Files/ObjectStore/NoopScanner.php @@ -30,6 +30,7 @@ class NoopScanner extends Scanner { public function __construct(Storage $storage) { + $this->storage = $storage; //we don't need the storage, so do nothing here } @@ -55,7 +56,16 @@ public function scanFile($file, $reuseExisting = 0, $parentId = -1, $cacheData = * @return array with the meta data of the scanned file or folder */ public function scan($path, $recursive = self::SCAN_RECURSIVE, $reuse = -1, $lock = true) { - return []; + $meta = $this->storage->getMetaData($path); + + if (isset($meta['checksum'])) { + $this->storage->getCache()->put( + $path, + ['checksum' => $meta['checksum']] + ); + } + + return $meta; } /**