Split Resource into Multiple Files During Copy

I have a use case where I have a global configuration file defined in YAML and I need to process it in such a way as to convert it to several smaller JSON files. I’m effectively copying a single input file, transforming it, and outputting several files. It doesn’t seem like the Copy task is capable of doing this out of the box, is it? I won’t know the destination filename of each sub config until I begin processing as it will come from within the larger input file

What’s the best way to achieve this?

Thanks,
Noel

I’d suggest writing a custom task that takes an input file and an output directory. You can then write as many files as you want to that output directory.

Thanks, I figured that’s what I’d have to do but it’s good to get confirmation.