mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-01-20 08:20:15 +00:00
GP-3347: Throwing RuntimeException if we can't list module directories
This commit is contained in:
parent
8aa9c8be3a
commit
bd2a7e00a7
@ -92,7 +92,13 @@ public class ModuleUtilities {
|
|||||||
if (!rootDir.exists() || remainingDepth <= 0) {
|
if (!rootDir.exists() || remainingDepth <= 0) {
|
||||||
return moduleRootDirs;
|
return moduleRootDirs;
|
||||||
}
|
}
|
||||||
for (ResourceFile subDir : rootDir.listFiles(ResourceFile::isDirectory)) {
|
|
||||||
|
ResourceFile[] subDirs = rootDir.listFiles(ResourceFile::isDirectory);
|
||||||
|
if (subDirs == null) {
|
||||||
|
throw new RuntimeException("Failed to read directory: " + rootDir);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (ResourceFile subDir : subDirs) {
|
||||||
if ("build".equals(subDir.getName())) {
|
if ("build".equals(subDir.getName())) {
|
||||||
continue; // ignore all "build" directories
|
continue; // ignore all "build" directories
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user