Function: packageToEntries()
packageToEntries(
pkg,options?):MaterialXPackageEntry[]
Flattens a package into { path, data } entries, root document first. By default throws on
unsafe archive paths so nothing downstream can write outside its target directory — pass
{ validate: false } only for loose .mtlx output whose resources were deliberately relocated
(e.g. via relocateTextureResources) to an absolute or ..-relative disk path, which is
not a valid archive path but is a valid write target on a real filesystem.
Parameters
pkg
options?
validate?
boolean