title: File not found in Node.js
body: <p>I'm having trouble understanding how to access a local file in a Node.js Expresss Webapp.</p>
  
  <p>I want to use the <a href="https://npmjs.org/package/excel-parser" rel="nofollow">excel-parser</a> package to read a file I have placed in /public/assets/ this should be read on load of the index page.</p>
  
  <p>So I have started by creating an ExpressJS app, and creating the following in my index.js:</p>
  
  <pre><code>exports.index = function(req, res){
    var excelParser = require('excel-parser')
  
    res.render('index', { title: 'Excel test' });
  
    excelParser.worksheets({
      inFile: '/assets/test_data.xlsx'
      }, function(err, worksheets){
        if(err) console.error(err);
  
        console.log('[INFO] Worksheet output: ');
        console.log(worksheets);
      });
  };
  </code></pre>
  
  <p>In ny console though I receive the error 'File not found', and '<em>worksheets</em>' is undefined.</p>
  
  <p>I have also tried with the following paths:</p>
  
  <ul>
  <li>/public/assets...</li>
  <li>__dirname + '/public/assets/...'</li>
  <li>__dirname + '/assets/...'</li>
  </ul>
  
  <p>All offer the same error.</p>