What I want to do is to be able to drop a folder (from my file system) containing svgs.
For every svg in that folder, I want to create a component (named by the files name) and then combine them as variants (named by the folders name).
Problem is, I cannot manage to get hold of the svgs, just the folder.
I looked at the examples png-crop and icon-drag-and-drop but they’re only handling files directly. Not files wrapped by a folder.
This:
figma.on('drop', (event) => {
const {files, node, dropMetadata, items} = event;
console.log(files);
...
When I drop a folder will only contain the folders name in files. So I cannot reach the svg files inside. Maybe someone can help?