|
|
|
@@ -461,7 +461,7 @@ |
|
|
|
var zNodes=[]; |
|
|
|
var nodesMap={}; |
|
|
|
for (let i=0;i<n_length;i++){ |
|
|
|
parentNodeMap = nodesMap; |
|
|
|
var parentNodeMap = nodesMap; |
|
|
|
var fileSplits = data[i].FileName.split("/"); |
|
|
|
for(let j=0;j < fileSplits.length;j++){ |
|
|
|
if(fileSplits[j] == ""){ |
|
|
|
@@ -472,13 +472,13 @@ |
|
|
|
} |
|
|
|
parentNodeMap = parentNodeMap[fileSplits[j]]; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
parentNodeMap = nodesMap; |
|
|
|
for(let j=0;j < fileSplits.length;j++){ |
|
|
|
if(fileSplits[j] == ""){ |
|
|
|
if(data[i].FileName[data[i].FileName.length -1] =="/"){ |
|
|
|
if(Object.keys(parentNodeMap[fileSplits[j-1]]).length ==0){ |
|
|
|
parentNodeMap[fileSplits[j]][dirKey]="true"; |
|
|
|
parentNodeMap[fileSplits[j-1]][dirKey]="true"; |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
|