fermyon / spin-js-sdk

https://developer.fermyon.com/spin/javascript-components
Apache License 2.0
54 stars 18 forks source link

Add fsPromise.readdir with minimal implementation for file types #22

Closed karthik2804 closed 2 years ago

karthik2804 commented 2 years ago

Implemented a minimal read directory based on nodejs. I also added the option to request for filetypes. It does not have all the properties provided by the node but supports the major ones.

While implementing the read directory I was wondering if we should implement glob as well as that seems to be straightforward to implement and might be useful.

Signed-off-by: karthik Ganeshram karthik.ganeshram@fermyon.com