mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-15 16:08:41 +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));
|
$destination = FileUtils::absolute(\str_replace('\\', '/', $destination));
|
||||||
|
|
||||||
if (!$overwrite && \is_file($destination)) {
|
if (!$overwrite && \is_file($destination)
|
||||||
|
|| \is_dir($destination)
|
||||||
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user