Skip to content

Commit

Permalink
#784: fix processing of recursive disks after commit ea81e2f
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Jan 25, 2022
1 parent 907f4c9 commit 2be79a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ public void read(File image, Item parent) throws Exception {
if (embeddedDisk) {
deviceName = parent.getName();
inheritedPath = Util.getParentPath(parent);
idTotrackIDMap.put(parent.getId(), (String) parent.getExtraAttribute(IndexItem.TRACK_ID));
}
}

Expand Down Expand Up @@ -1073,6 +1074,7 @@ private void addToProcessingQueue(ICaseData caseData, Item item) throws Interrup
// retrieve and store parenttrackID explicitly before adding to queue
if (!item.isRoot()) {
String parenttrackID = idTotrackIDMap.get(item.getParentId());
System.out.println("get parent trackId -> " + parenttrackID + " " + item.getPath());
if (parenttrackID != null) {
item.setExtraAttribute(IndexItem.PARENT_TRACK_ID, parenttrackID);
} else {
Expand All @@ -1096,9 +1098,10 @@ private void addToProcessingQueue(ICaseData caseData, Item item) throws Interrup
}
// store parents trackID after adding to queue (where it is computed and ID
// could be reassigned)
if (item.hasChildren() || item.isDir() || item.isRoot()) {
{// if (item.hasChildren() || item.isDir() || item.isRoot()) {
String trackID = (String) item.getExtraAttribute(IndexItem.TRACK_ID);
idTotrackIDMap.put(item.getId(), trackID);
System.out.println("idToTrackId -> " + trackID + " " + item.getPath());
}
}

Expand Down

0 comments on commit 2be79a5

Please sign in to comment.