Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit b80f739

Browse files
committed
Fixbug overtrue#23
1 parent 2a495f5 commit b80f739

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/StorageManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,14 @@ public function upload(Request $request)
8585
*/
8686
public function listFiles($path, $start, $size = 20, array $allowFiles = [])
8787
{
88-
$files = $this->paginateFiles($this->disk->listContents($path, true), $start, $size);
88+
$allFiles = $this->disk->listContents($path, true);
89+
$files = $this->paginateFiles($allFiles, $start, $size);
8990

9091
return [
9192
'state' => empty($files) ? 'EMPTY' : 'SUCCESS',
9293
'list' => $files,
9394
'start' => $start,
94-
'total' => count($files),
95+
'total' => count($allFiles),
9596
];
9697
}
9798

0 commit comments

Comments
 (0)