mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-07 09:11:15 -09:00
GP-7169: Headless fix
This commit is contained in:
@@ -1697,6 +1697,10 @@ public class HeadlessAnalyzer {
|
||||
folderPath += DomainFolder.SEPARATOR;
|
||||
}
|
||||
folderPath += startDir.getName();
|
||||
|
||||
// Handles windows directory paths like "d:", both real and extracted paths on non-windows
|
||||
// filesystem or archive files
|
||||
folderPath = folderPath.replaceAll(":/", "/");
|
||||
|
||||
for (GFile file : fs.getListing(startDir)) {
|
||||
String name = file.getName();
|
||||
@@ -1713,7 +1717,9 @@ public class HeadlessAnalyzer {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
checkValidFilename(fqFSRL.getName());
|
||||
if (!file.isDirectory()) {
|
||||
checkValidFilename(fqFSRL.getName());
|
||||
}
|
||||
processWithImport(fqFSRL, folderPath, depth, false);
|
||||
}
|
||||
catch (InvalidInputException e) {
|
||||
|
||||
@@ -66,7 +66,7 @@ for common use cases.
|
||||
[<a href="#-scriptlog-path-to-script-log-file">-scriptlog <path to script log file></a>]
|
||||
[<a href="#-log-path-to-log-file">-log <path to log file></a>]
|
||||
[<a href="#-overwrite">-overwrite</a>]
|
||||
[<a href="#-mirror">-overwrite</a>]
|
||||
[<a href="#-mirror">-mirror</a>]
|
||||
[<a href="#-recursive-depth">-recursive [<depth>]</a>]
|
||||
[<a href="#-readonly">-readOnly</a>]
|
||||
[<a href="#-deleteproject">-deleteProject</a>]
|
||||
|
||||
Reference in New Issue
Block a user