Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Nightly Builds
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
35848
Description
Hello,
the code
FileSystemManager fsManager = VFS.getManager();
FileObject file = fsManager.resolveFile("D:/test.txt");
System.out.println("VFS: " + file.getName().getURI());
File ioFile = new File("D:/test.txt");
System.out.println("IO: " + ioFile.toURI());
prints
VFS: file://D:/test.txt
IO: file:/D:/test.txt
Note the second slash in first URI.
If you replace
buffer.append("://")
in LocalFileName.appendRootUri(StringBuffer) with
buffer.append(":/");
the URI is correct. But I have no idea about some side effects.
Please check that.