mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 12:06:57 +08:00
GT-2585: Fixing bad windows path when project lives in root windows
directory.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user