|
@@ 165-168 (lines=4) @@
|
| 162 |
|
if ($data) { |
| 163 |
|
|
| 164 |
|
// pre-emit only if it was a file. By that we avoid counting/treating folders as files |
| 165 |
|
if ($data['mimetype'] !== 'httpd/unix-directory') { |
| 166 |
|
$this->emit('\OC\Files\Cache\Scanner', 'scanFile', array($file, $this->storageId)); |
| 167 |
|
\OC_Hook::emit('\OC\Files\Cache\Scanner', 'scan_file', array('path' => $file, 'storage' => $this->storageId)); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
$parent = dirname($file); |
| 171 |
|
if ($parent === '.' or $parent === '/') { |
|
@@ 234-237 (lines=4) @@
|
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
// post-emit only if it was a file. By that we avoid counting/treating folders as files |
| 234 |
|
if ($data['mimetype'] !== 'httpd/unix-directory') { |
| 235 |
|
$this->emit('\OC\Files\Cache\Scanner', 'postScanFile', array($file, $this->storageId)); |
| 236 |
|
\OC_Hook::emit('\OC\Files\Cache\Scanner', 'post_scan_file', array('path' => $file, 'storage' => $this->storageId)); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
} else { |
| 240 |
|
$this->removeFromCache($file); |