Constructing a UNIX path string on a windows system
<p>I guess I'm not getting the full picture here, so I would appreciate someone's help.</p>

<p>I'm using java.nio.file.path and java.nio.file.paths. I'm trying to make a path string from subcomponents using something like <code>Path pt = Paths.get("/this/", "is", "a", "file", "path");</code> but it's <code>.toString()</code> function is using backslashes since I'm on windows <code>\this\is\a\file\path</code>. The problem is I want UNIX separators and can't find a way to force it without wrapping it with a <code>substituteSlashes(pt.toString());</code> function. This isn't ideal and I'd rather just go back to hard-coding paths in strings. </p>