earlSt1 / vtt-compendium-folders

Collapsable folders in the compendium directory and folder structures inside compendiums for FoundryVTT
21 stars 18 forks source link

Can't import subfolder #188

Open farling42 opened 1 year ago

farling42 commented 1 year ago

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.

earlSt1 commented 1 year ago

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?

farling42 commented 1 year ago

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