title: Create new Path from existing Path object with NIO2
body: <p>I have a <code>java.nio.file.Path</code> object that represents some directory (e.g., <code>/var/log</code>). I want a new Path object representing a file within the directory (e.g., <code>/var/log/something.log</code>). I have been using</p>
  
  <pre><code>Path logDir = ...
  Path logFile = Paths.get(logDir.toString(), "something.log");
  </code></pre>
  
  <p>But it seems silly to have to turn logDir into a string, then construct the new Path object. How can I get the logFile object but without using toString? E.g.,</p>
  
  <pre><code>Path logDir = ...
  Path logFile = Paths.get(logDir, "something.log"); // Doesn't exist
  </code></pre>