OK, I am not JS guru, I looked at it from c++/java/c# point of view and was thinking it is related to StorageFile so can be static method there but true that it does not fit there 100% too. Or it may if also open() would move there so Storage and StorageFile would become logically separated APIs - you would use StorageFile.list and StorageFile.open returning new instance not knowing about Storage API at all.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
OK, I am not JS guru, I looked at it from c++/java/c# point of view and was thinking it is related to StorageFile so can be static method there but true that it does not fit there 100% too. Or it may if also open() would move there so Storage and StorageFile would become logically separated APIs - you would use StorageFile.list and StorageFile.open returning new instance not knowing about Storage API at all.