mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix double slash in paths
This commit is contained in:
@@ -58,7 +58,15 @@ public class CoreJarVirtualFile extends VirtualFile {
|
||||
@Override
|
||||
public String getPath() {
|
||||
if (myParent == null) return myHandler.myBasePath + "!/";
|
||||
return myParent.getPath() + "/" + myEntry.shortName;
|
||||
|
||||
String parentPath = myParent.getPath();
|
||||
StringBuilder answer = new StringBuilder(parentPath.length() + 1 + myEntry.shortName.length());
|
||||
if (answer.charAt(answer.length() - 1) != '/') {
|
||||
answer.append('/');
|
||||
}
|
||||
answer.append(myEntry.shortName);
|
||||
|
||||
return answer.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user