Hi Max Developers,
I am writing an external (in C/C++) which is able to save and load (text based) files. I followed the SDK instruction to write the save and load functions so I can give my external either the file name alone or a full path/filename combination. And it works well.
However, I would like to have an additional feature: I would like my object to create the directory given in the full path/filename combination if it doesn't exist yet. For example if I give my external the message write System:/Users/Me/Desktop/Name/File.json and the folder "Name" doesn't exist on my desktop, I would like it to create the folder then write the file inside.
I would be ok with a solution which creates the folder outside of my external, prior to sending the write message to my object. But I have read this post about it http://cycling74.com/forums/topic.php?id=24563
and it doesn't seems to be any way without Java or a custom external. As I am writing my own external too, I'd rather integrate this feature to it than depend on someone else's code.
Do you have any idea which function(s) I could use in the API to do it ?