js-cfb icon indicating copy to clipboard operation
js-cfb copied to clipboard

Bad parenting / hierarchy construction when parent is after R / L sibling tree

Open rossj opened this issue 4 years ago • 0 comments

I've noticed some files that show an incorrect folder structure with this library. I believe the dad array is not filled correctly when a node comes before it's parent, and has R or L sibling nodes. I've attached a sample file that demonstrates the issue.

In the attached .cfb file, both some file 1 and some file 2 are sibling files under some folder, but js-cfb shows some file 2 as a root level file.

image

file.zip

rossj avatar Dec 28 '21 21:12 rossj