title: How do I find path to item in nodejs?
body: <p>I'm using node/express and trying to follow the answers I see here: <a href="https://stackoverflow.com/questions/11598274/display-pdf-in-browser-using-express-js">Display Pdf in browser using express js</a></p>
  
  <p>but I'm not sure how to find the path to my PDF file. It's located in the main directory of the project folder, within a folder called "file," so I thought the path would just be</p>
  
  <pre><code>./file/myPDF.pdf
  </code></pre>
  
  <p>but I just get a "failed to load PDF document" regardless of the path I use. </p>