Hi, I have trying to export json files to each folder from array.
The issue comes when the folders exists already in the working folder.
I have been test my script on regular node but in the skmp I get some Domain=NSCocoaErrorDomain Code=516 and Error Domain=NSPOSIXErrorDomain Code=17 "File exists" errors.
Here is the Sketch plugin code https://jsfiddle.net/vjandrei/k90fysbL/1/
and here the only node version https://jsfiddle.net/vjandrei/tufx58vj/5/
The end result is to get each folder (color, typography and spacing )index.json file