GP-7169: Headless fix

This commit is contained in:
Ryan Kurtz
2026-08-28 06:21:04 -04:00
parent 70f16d191d
commit 7a969f941b
2 changed files with 8 additions and 2 deletions

View File

@@ -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) {

View File

@@ -66,7 +66,7 @@ for common use cases.
[<a href="#-scriptlog-path-to-script-log-file">-scriptlog &lt;path to script log file&gt;</a>]
[<a href="#-log-path-to-log-file">-log &lt;path to log file&gt;</a>]
[<a href="#-overwrite">-overwrite</a>]
[<a href="#-mirror">-overwrite</a>]
[<a href="#-mirror">-mirror</a>]
[<a href="#-recursive-depth">-recursive [&lt;depth&gt;]</a>]
[<a href="#-readonly">-readOnly</a>]
[<a href="#-deleteproject">-deleteProject</a>]