mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #5649 from APriestman/6004_sharedConfigEmptyPathComment
6004 Refactoring to make it clearer why the database paths may be empty.
This commit is contained in:
commit
8394b29073
@ -1243,9 +1243,14 @@ public class SharedConfiguration {
|
|||||||
HashDbManager hashDbManager = HashDbManager.getInstance();
|
HashDbManager hashDbManager = HashDbManager.getInstance();
|
||||||
hashDbManager.loadLastSavedConfiguration();
|
hashDbManager.loadLastSavedConfiguration();
|
||||||
for (HashDbManager.HashDb hashDb : hashDbManager.getAllHashSets()) {
|
for (HashDbManager.HashDb hashDb : hashDbManager.getAllHashSets()) {
|
||||||
if (hashDb.hasIndexOnly() && (!hashDb.getIndexPath().isEmpty())) {
|
// Central Repository hash sets have no path and don't need to be copied
|
||||||
|
if (hashDb.getIndexPath().isEmpty() && hashDb.getDatabasePath().isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hashDb.hasIndexOnly()) {
|
||||||
results.add(hashDb.getIndexPath());
|
results.add(hashDb.getIndexPath());
|
||||||
} else if (!hashDb.getDatabasePath().isEmpty()) {
|
} else {
|
||||||
results.add(hashDb.getDatabasePath());
|
results.add(hashDb.getDatabasePath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user