Skip to content

Commit

Permalink
Fix scanning of incomplete folders
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Nov 10, 2015
1 parent cc257e1 commit 0c16153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/files/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ private function getCacheEntry($storage, $internalPath, $relativePath) {

try {
// if the file is not in the cache or needs to be updated, trigger the scanner and reload the data
if (!$data) {
if (!$data || $data['size'] === -1) {
$this->lockFile($relativePath, ILockingProvider::LOCK_SHARED);
if (!$storage->file_exists($internalPath)) {
$this->unlockFile($relativePath, ILockingProvider::LOCK_SHARED);
Expand Down

0 comments on commit 0c16153

Please sign in to comment.