Tera macro to write arbitrary files

I used load_data to download images from a private API, and I wanted to save them on the public folder. I wrote a patch that adds a save_as_file(path=string, data=string, base64=bool) Tera function, that may be useful to some people.

I don’t know if you’re interested in upstreaming this @keats. If so I’m ready to adapt the interface if you’re interested in the feature but don’t like the interface.

Definitely not something that will be added upstream but cool to see

1 Like