mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-31 10:08:39 +00:00
fix packing bug with zip
This commit is contained in:
parent
74ed9b9ef7
commit
9fe5c84b47
|
|
@ -35,7 +35,9 @@ class Zip implements ArchiveInterface
|
|||
{
|
||||
$destination = FileUtils::absolute(\str_replace('\\', '/', $destination));
|
||||
|
||||
if (!$overwrite && \is_file($destination)) {
|
||||
if (!$overwrite && \is_file($destination)
|
||||
|| \is_dir($destination)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user