mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 08:09:47 -04:00
Fix default folder download (still strange for shell-tar).
This commit is contained in:
parent
b40ae3480f
commit
49d0c968b9
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ class Archive {
|
||||||
$this->add_hrefs($urls);
|
$this->add_hrefs($urls);
|
||||||
|
|
||||||
if (count($this->dirs) === 0 && count($this->files) === 0) {
|
if (count($this->dirs) === 0 && count($this->files) === 0) {
|
||||||
$this->add_dir(CURRENT_PATH, "/");
|
if ($type === "php-tar") {
|
||||||
|
$this->add_dir(CURRENT_PATH, "/");
|
||||||
|
} else {
|
||||||
|
$this->add_dir(CURRENT_PATH, ".");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($type === "php-tar") {
|
if ($type === "php-tar") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue