|
@@ 320-323 (lines=4) @@
|
| 317 |
|
if ($reuse === -1) { |
| 318 |
|
$reuse = ($recursive === self::SCAN_SHALLOW) ? self::REUSE_ETAG | self::REUSE_SIZE : self::REUSE_ETAG; |
| 319 |
|
} |
| 320 |
|
if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) { |
| 321 |
|
$this->storage->acquireLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider); |
| 322 |
|
$this->storage->acquireLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider); |
| 323 |
|
} |
| 324 |
|
try { |
| 325 |
|
$data = $this->scanFile($path, $reuse, -1, null, $lock); |
| 326 |
|
if ($data and $data['mimetype'] === 'httpd/unix-directory') { |
|
@@ 331-334 (lines=4) @@
|
| 328 |
|
$data['size'] = $size; |
| 329 |
|
} |
| 330 |
|
} finally { |
| 331 |
|
if ($lock && $this->storage->instanceOfStorage(ILockingStorage::class)) { |
| 332 |
|
$this->storage->releaseLock($path, ILockingProvider::LOCK_SHARED, $this->lockingProvider); |
| 333 |
|
$this->storage->releaseLock('scanner::' . $path, ILockingProvider::LOCK_EXCLUSIVE, $this->lockingProvider); |
| 334 |
|
} |
| 335 |
|
} |
| 336 |
|
return $data; |
| 337 |
|
} |