Fix output file deletion after exception thrown on write (#328)

For relative paths, it would not work as the FileSystemHelper would not allow deleting a file that's not part of its base folder.
This commit is contained in:
Adrien Loison authored and GitHub committed 2016-10-12 11:15:07 -07:00
1 parent 23f8cc4f05
commit 77178122c3
5 files changed
+10 -21

No files matched your search

@@ -94,7 +94,7 @@ class FileSystemHelper extends \Box\Spout\Common\Helper\FileSystemHelper
*/
protected function createRootFolder()
{
$this->rootFolder = $this->createFolder($this->baseFolderPath, uniqid('xlsx', true));
$this->rootFolder = $this->createFolder($this->baseFolderRealPath, uniqid('xlsx', true));
return $this;
}