title: Node.js: Sending file in same directory
body: <p>I hope this question isn't too ridiculous. </p>
  
  <pre><code>var app = require('express')();
  var http = require('http').Server(app);
  
  
  app.get('/', function(req,res){
      res.sendFile('index.html');
  });
  
  http.listen(3000,function(){
      console.log('/','listening on *:3000');
  });
  </code></pre>
  
  <p>I am running linux mint, and whenever I try to run this locally I get the following error:</p>
  
  <blockquote>
    <p>Error: ENOENT, stat 'index.html'
        at Error (native)</p>
  </blockquote>
  
  <p>I believe it has something to do with the directory. The <code>index.html</code> file is in the same folder as the <code>index.js</code> file. I've searched around and couldn't find this exact error in this case so am kind of confused. Am I putting in the wrong directory for the </p>
  
  <pre><code>app.get('/', function(req,res){
      res.sendFile('index.html');
  });
  </code></pre>