newDirectoryStream(dir) for absolute dir always returns absolute paths?
Francis Galiegue
fgaliegue at gmail.com
Mon Mar 31 05:01:36 UTC 2014
Hello,
On Mon, Mar 31, 2014 at 4:51 AM, Wang Weijun <weijun.wang at oracle.com> wrote:
> If dir is absolute, can I be sure that path elements in newDirectoryStream(dir) are also absolute?
>
The doc says so at least, in Java 7 and 8: " The Path objects are
obtained as if by resolving the name of the directory entry against
dir. " (where "dir" is the Path argument)
Therefore, yes, you can guarantee that.
--
Francis Galiegue, fgaliegue at gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com
More information about the nio-dev
mailing list