mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-20 04:20:00 +01:00
Fix default folder download (still strange for shell-tar).
This commit is contained in:
parent
b40ae3480f
commit
49d0c968b9
@ -23,7 +23,11 @@ class Archive {
|
||||
$this->add_hrefs($urls);
|
||||
|
||||
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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user