Skip to content

Commit

Permalink
fix: skip parent folder in api ls
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschubek committed Jun 21, 2024
1 parent 540fe6d commit 3820b3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ function downloadBatch(array $urls) {
if(isset($_REQUEST["ls"])) {
$info = [];
foreach ($sorted as $file) {
if ($file->name === "..") continue; // skip parent folder
$info[] = [
"url" => $file->url,
"name" => $file->name,
Expand Down

0 comments on commit 3820b3b

Please sign in to comment.