title: fopen failing in Kernel Command but not in controller Laravel
body: <p>I am using fopen to generate a csv file. The function works as expected in a test controller but when I move to a Console/Commands file, it fails with 'failed to open stream: No such file or directory'.</p>
  
  <p>This is the fopen line;</p>
  
  <pre><code>$fp = fopen('dataFiles/dataFile_'.date('Ymd').'.csv', 'w');
  </code></pre>
  
  <p>I have tried to change the url declaration to;</p>
  
  <pre><code>$fp = fopen('/dataFiles/dataFile_'.date('Ymd').'.csv', 'w');
  </code></pre>
  
  <p>No dice. The dataFiles folder is in my projects public dir.</p>
  
  <p>What could be the issue here?</p>
  
  <p>This is a 5.3 project.</p>
  
  <p>Thanks!</p>