mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-27 21:10:26 +00:00
GT-2585: Fixing bad windows path when project lives in root windows
directory.
This commit is contained in:
parent
4919d6ec54
commit
398db09cec
|
@ -120,6 +120,9 @@ public class GhidraURL {
|
|||
String path = localProjectURL.getPath();
|
||||
int index = path.lastIndexOf('/');
|
||||
String dirPath = path.substring(0, index);
|
||||
if (dirPath.endsWith(":")) {
|
||||
dirPath += "/";
|
||||
}
|
||||
if (dirPath.indexOf(":/") == 2) {
|
||||
dirPath = dirPath.substring(1);
|
||||
dirPath = dirPath.replace('/', File.separatorChar);
|
||||
|
|
Loading…
Reference in a new issue