mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-0 added safety check for eclipse bin directory treatment as module
root. Moved DataType extension point to SoftwareModeling.
This commit is contained in:
parent
1333ac6a0c
commit
6aaf9139ee
3 changed files with 6 additions and 1 deletions
|
@ -63,6 +63,11 @@ public class ModuleUtilities {
|
|||
*/
|
||||
public static boolean isModuleDirectory(Path path) {
|
||||
File file = path.toFile();
|
||||
if ("bin".equals(file.getName())) {
|
||||
// Prevent eclipse project bin directory from being treated as module root
|
||||
// since files frequently get copied from root into bin
|
||||
return false;
|
||||
}
|
||||
return new File(file, MANIFEST_FILE_NAME).exists();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue