title: Convert a path to absolute path
body: <p>I have a path object that needs to be converted to absolute path.</p>
  
  <pre><code>Path path = Paths.get("..\\this\\that\\blah.txt");
  
  System.out.println(path.toFile().getCanonicalPath());
  </code></pre>
  
  <p>This is skipping the main project folder due to which I can't access the file. I want something like:</p>
  
  <pre><code>C:\Folder\ProjectFolder\this\\that\\blah.txt
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>C:\Folder\this\\that\\blah.txt
  </code></pre>