5368 use parent's unique path for grouping by parent path

This commit is contained in:
William Schaefer 2019-09-05 12:09:40 -04:00
parent b1f8f630be
commit 4460d13d26

View File

@ -656,11 +656,16 @@ class FileSearch {
*/
private static class ParentPathGroupKey extends GroupKey {
private final String parentPath;
private String parentPath;
ParentPathGroupKey(ResultFile file) {
if (file.getFirstInstance().getParentPath() != null) {
try {
parentPath = file.getFirstInstance().getParent().getUniquePath();
} catch (TskCoreException ingored) {
parentPath = file.getFirstInstance().getParentPath();
}
} else {
parentPath = ""; // NON-NLS
}