FileResourceExporter
A visitor that saves each type of OutputResource to a file and returns it.
Parameters
location
directory to save the resources to
write
whether to actually write to the file system (if false, the visitor only returns the corresponding file paths without creating them)
Types
Link copied to clipboard
object NameProvider
Mapping of OutputResources to their file names.
Functions
Link copied to clipboard
Copies a FileReferenceOutputArtifact to the output location. If the source is a directory, it is copied recursively.
Saves an OutputResourceGroup to a directory which contains its nested files.
Saves an OutputArtifact to a file with text content.