Doug Cutting wrote:
Dennis Kubes wrote:
If I call Path.toURI is essentially prints out the path without a scheme.
That's right. You've provided no scheme, and so have a
scheme-independent path, a kind of relative path.
On the other hand if I create a file and call its toURI method I get
Dennis Kubes wrote:
If I call Path.toURI is essentially prints out the path without a
scheme.
That's right. You've provided no scheme, and so have a
scheme-independent path, a kind of relative path.
On the other hand if I create a file and call its toURI method
I get a scheme.
Right, the
I can't really tell if this is a bug or a *feature*. Path is meant to
handle various file systems, DFS, S3, Local, etc. Path has a toURI
method. I don't think the current behavior of toURI is consistent,
especially with local file handling. Take the following code:
Path path = new Path("/h