Permalink
Browse files

fix the UNC root pathname

  • Loading branch information...
emuckenhuber authored and n1hility committed Nov 4, 2011
1 parent e722601 commit ed221431d6277d5ebd95e5a5707bc86acd8f5b52
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jboss/vfs/VFS.java
@@ -206,7 +206,7 @@ public static VirtualFile getChild(String path) {
// Note, it turns out that File.toURL puts this portion
// in the path portion of the URL, which is actually not
// correct, since // is supposed to signify the authority.
- root = new VirtualFile("//" + absolute.substring(0,i), null);
+ root = new VirtualFile("//" + absolute.substring(0,i) + "/", null);
path = absolute.substring(i).replace('\\', '/');
break;
}

0 comments on commit ed22143

Please sign in to comment.