Skip to content

Commit de4b630

Browse files
committed
MC-30066: Temporary files are not deleted after exporting products
1 parent 2abdcd4 commit de4b630

File tree

1 file changed

+10
-1
lines changed
  • app/code/Magento/ImportExport/Model/Export/Adapter

1 file changed

+10
-1
lines changed

app/code/Magento/ImportExport/Model/Export/Adapter/Csv.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\ImportExport\Model\Export\Adapter;
77

88
use Magento\Framework\Exception\LocalizedException;
9-
use Magento\Framework\Filesystem;
109
use Magento\Framework\Filesystem\File\Write;
1110

1211
/**
@@ -42,6 +41,16 @@ class Csv extends AbstractAdapter
4241
* Object destructor
4342
*/
4443
public function __destruct()
44+
{
45+
$this->destruct();
46+
}
47+
48+
/**
49+
* Clean cached values
50+
*
51+
* @return void
52+
*/
53+
public function destruct()
4554
{
4655
if (is_object($this->_fileHandler)) {
4756
$this->_fileHandler->close();

0 commit comments

Comments
 (0)