Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#5] Add option to extract with matching folder structure #60

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

arbron
Copy link

@arbron arbron commented Feb 20, 2025

Adds the folders option to extraction that places extracted documents into folders matching the folders in the original compendium. The folder data itself is added to _Folder.json/yml within the created folder.

Adds a transformFolderName option when programmatically calling extractPack that allows for renaming the folder that will be created. The normal transformName callback also gets a second parameter with the containing folder name.

Closes #5

Adds the `folders` option to extraction that places extracted
documents into folders matching the folders in the original
compendium. The folder data itself is added to `_Folder.json/yml`
within the created folder.

Adds a `transformFolderName` option when programmatically calling
`extractPack` that allows for renaming the folder that will be
created. The normal `transformName` callback also gets a second
parameter with the containing folder name.

Closes foundryvtt#5
…bject

Moved the `folder` passed into `NameTransformer` into a `context`
object to potentially support additional context in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When serializing a Compendium pack, write documents to disk matching their Folder structure
1 participant