Possible to upload files to SD card via script or code?


#1

I am looking for a way to do what the "Patch -> Upload to SD Card" does and upload other files from the terminal or via scripting.
Is it possible?

I am looking into implementing a menu-system for the OLED screen that would read data from a JSON file (using the jsmn library).
Since I will be editing that file a lot, it would be great to automate the uploading.


#2

Take a look at the wave/play fn object. This one has a file input attribute which lets you choose a *.wav file to play. As far as I can remember, this object also uploads the sample files to the SD card. Try creating a custom object with a file picker and see if it also uploads JSON files.


#3

It works perfectly, thank you @janvantomme !