Closed mxrth closed 1 year ago
I'm trying to use BrowserFS with wasm (golang based, using 1.16 version) and facing this issue when trying to list files with Golang. It tries to open directory to list files. I was trying to apply misak113 changes but without success, facing another error. Are there any plans regarding this?
On node on linux
fs.openSync('/tmp', 'r')
works fine, whereas BrowserFS only allows open on files. This would, among other things, allow fstatting on directories. (My concrete use case is to use BrowserFS to run go binaries in the browser via the upcoming wasm-backend. The go standard lib does anopen
,fstat
,readdir
sequence whenever it gets an directory listing)