mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +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
|
@Override
|
||||||
public List<LayoutFile> visit(Directory dir) {
|
public List<LayoutFile> visit(Directory dir) {
|
||||||
try {
|
try {
|
||||||
List<LayoutFile> results = new ArrayList<>();
|
|
||||||
for (Content c : dir.getChildren()) {
|
for (Content c : dir.getChildren()) {
|
||||||
if (c instanceof VirtualDirectory) {
|
if ((c instanceof VirtualDirectory) && (c.getName().equals(VirtualDirectory.NAME_UNALLOC))) {
|
||||||
results.addAll(c.accept(this));
|
return c.accept(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return results;
|
|
||||||
} catch (TskCoreException tce) {
|
} catch (TskCoreException tce) {
|
||||||
logger.log(Level.WARNING, "Couldn't get a list of Unallocated Files, failed at visiting Directory " + dir.getId(), tce); //NON-NLS
|
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