vtt-compendium-folders icon indicating copy to clipboard operation
vtt-compendium-folders copied to clipboard

Can't import subfolder

Open farling42 opened this issue 2 years ago • 2 comments

Selecting the "Import Folder Structure" fails to copy subfolders. It generates an error: image

The same error is reported if I try to import one of the subfolders directly.

This is attempting to import from a compendium stored in a module.

farling42 avatar Nov 23 '22 10:11 farling42

Hi, do you have Merge by name enabled? If so can you try with it off just to see if you get the same error?

earlSt1 avatar Nov 23 '22 17:11 earlSt1

It took me a while to find a folder on which this error occurred. On a lot of folders it works as expected.

I tried without either of the two options selected and it still caused the above error.

Stepping with the debugger, line 2694 await FICManager.recursivelyImportFolders fails.

I note that after "let coll = pack.contents" coll is an array of 0 entries, even though the folder has 7 Items in it.

See attached 'items.gotf' in the attached 'items.gotf.db' for the 'cyphersystem' game system, which has a top-level folder Equipment containing a subfolder Materials - trying to import the "Materials" sub-folder fails.

items-gotf.zip

farling42 avatar Nov 25 '22 13:11 farling42