mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2026-03-14 20:55:50 +01:00
fix "Archive not created" error (#317)
fix "Archive not created" error while trying to create Tar archive
This commit is contained in:
parent
1501835f61
commit
e8fc6d546a
1 changed files with 6 additions and 1 deletions
|
|
@ -2977,7 +2977,12 @@ class FM_Zipper_Tar
|
|||
private function addFileOrDir($filename)
|
||||
{
|
||||
if (is_file($filename)) {
|
||||
return $this->tar->addFile($filename);
|
||||
try {
|
||||
$this->tar->addFile($filename);
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
return false;
|
||||
}
|
||||
} elseif (is_dir($filename)) {
|
||||
return $this->addDir($filename);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue