mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Specifically look for $Unalloc dir
This commit is contained in:
parent
68d99777f1
commit
70018a8af3
@ -454,13 +454,11 @@ final class ExtractUnallocAction extends AbstractAction {
|
||||
@Override
|
||||
public List<LayoutFile> visit(Directory dir) {
|
||||
try {
|
||||
List<LayoutFile> results = new ArrayList<>();
|
||||
for (Content c : dir.getChildren()) {
|
||||
if (c instanceof VirtualDirectory) {
|
||||
results.addAll(c.accept(this));
|
||||
if ((c instanceof VirtualDirectory) && (c.getName().equals(VirtualDirectory.NAME_UNALLOC))) {
|
||||
return c.accept(this);
|
||||
}
|
||||
}
|
||||
return results;
|
||||
} catch (TskCoreException tce) {
|
||||
logger.log(Level.WARNING, "Couldn't get a list of Unallocated Files, failed at visiting Directory " + dir.getId(), tce); //NON-NLS
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user