Drag & Drop Folders impossible?


I need to drop files or folders into my p5js canvas.
I’m using cnv.drop() but it only allows for a single file or an array of files.
How could I also drop folders?
How are you doing it?

Thanks in advance.

I believe that folder dropping is still dangerous / not recommended, so many tools and libraries don’t support it. Among other reasons, that is because browsers implement it differently, and in HTML5 spec

readEntries will not necessarily return ALL the (file or directory) entries for a given directory. This is part of the API specification