diff options
-rw-r--r-- | apps/files_external/lib/google.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index 8199d97eacb..701e17d970b 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -291,6 +291,8 @@ class Google extends \OC\Files\Storage\Common { } $pageToken = $children->getNextPageToken(); } + // reindex values to compensate for removed duplicates + $files = array_values($files); \OC\Files\Stream\Dir::register('google'.$path, $files); return opendir('fakedir://google'.$path); } else { |