Path's .relativize documentation is wrong on a crucial point

Francis Galiegue fgaliegue at gmail.com
Mon Dec 14 15:09:29 UTC 2015


Hello,

On Sun, Dec 13, 2015 at 8:00 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
[...]
>>
>>
> Yes, there is a spec issue here as this should make it clear that and paths
> p and q are the same FileSystem. I will create a bug for this, assuming we
> don't have one already.
>

There is one more method in FileSystemProvider which is also making me
pause: .copy().

Theoretically, it can be used if and only if two paths are from the
same provider; and in my case we get into the situation where even
that does not make any sense.

If my two filesystems are different dropbox accounts for instance, I
cannot use the direct copy command from the dropbox sdk; I have to go
through a plain InputStream to OutputStream copy.

-- 
Francis Galiegue, fgaliegue at gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/fge/grappa


More information about the nio-dev mailing list