title: Change saving directory in phpspreadsheet
body: <p>Im using PhpSpreadsheet to generate XLS files, all the functions work perfect except that it saves local files in temporary directories and I want to save them in a specific folder. </p>
  
  <pre><code>use PhpOffice\PhpSpreadsheet\IOFactory;
  require __DIR__ . '/Header.php';
  
  $spreadsheet = require __DIR__ . '/templates/MyTemplate.php';
  
  $filename = $helper-&gt;getFilename("MyFilename", 'xls'); 
  $writer = IOFactory::createWriter($spreadsheet, 'Xls');
  
  $callStartTime = microtime(true);
  $writer-&gt;save($filename);
  $helper-&gt;logWrite($writer, $filename, $callStartTime);
  </code></pre>
  
  <p>But the output is located in </p>
  
  <pre><code>Write Xls format to /var/folders/pn/lyj970q90lq20mjv39bpgx_80000gn/T/phpspreadsheet/MyFilename.xls in 0.0640 seconds
  </code></pre>
  
  <p>Is there an other function to set the saving directory I want the files in?</p>