Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wdda committed Feb 3, 2023
1 parent 30992a1 commit 0c86d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Resources/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function getList(Collection $params): array
}

$pathFile = $pathDir . '/' . $file;
if (file_exists($pathFile)) {
if (file_exists($pathFile) && is_file($pathFile)) {
$result[] = [
'name' => $file,
'path' => $pathDir,
Expand Down

0 comments on commit 0c86d23

Please sign in to comment.