1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-01-17 07:18:14 +01:00
This commit is contained in:
Ne-Lexa 2021-05-16 23:28:33 +03:00
parent 8954da9e32
commit bb1a607d0d

View File

@ -515,7 +515,9 @@ class ZipFile implements ZipFileInterface
try {
$zipData->copyDataToStream($handle);
} catch (ZipException $e) {
unlink($file);
if (is_file($file)) {
unlink($file);
}
throw $e;
}