[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-nio-dev
Subject:    Re: newDirectoryStream(dir) for absolute dir always returns absolute paths?
From:       Francis Galiegue <fgaliegue () gmail ! com>
Date:       2014-03-31 5:01:36
Message-ID: CALcybBDOWjLo=HxVg+7gcFbtjpwu65a9sj_d5aTWLXEazooUVw () mail ! gmail ! com
[Download RAW message or body]

Hello,

On Mon, Mar 31, 2014 at 4:51 AM, Wang Weijun <weijun.wang@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@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic