Add multiple files in a packages with api.addFiles


This is what i’d like to achieve :

api.addFiles( [
], 'client' );

But it appear to be not supported. Have you ever encountered something like that ? I currently import twenty-like files and this is ugly to name them one by one :smile:


Unfortunately, the current api does not allow that. You can’t do javascript processing (FS) of the directory tree to build file names either.


Well, this is unfortunate.

I see how to do it the way you suggest, but it would be heavier than just writing my file list.

Thank you anyway !


This is the only possibility I’ve come across:

Honestly though, I’d just add them manually, gives you more control as well.