Path.subpath
Alan Bateman
Alan.Bateman at oracle.com
Thu Jun 7 14:22:03 PDT 2012
On 07/06/2012 20:17, Paulo Levi wrote:
> Hi. May i ask why does the Path.subpath method not return the Root,
> even if started with 0? It's intentional from the javadoc, and easy to
> avoid by resolving against the getRoot from the original path, but i
> am curious about the reasons.
You may or may not want the root component so this would would require
an additional parameter to indicate this. So yes, subpath is
intentionally specified to return a relative path and that keeps it simple.
-Alan
More information about the nio-discuss
mailing list