Open
Description
The following is a minimal reproducible example to show how this doesn't work with node 20 (but does with node 18 and 16).
~/websocketfs$ node
Welcome to Node.js v20.5.1.
Type ".help" for more information.
> z = await require('.').bind(process.env.HOME,'/tmp/mnt'); null
null
> await require('fs/promises').writeFile('/tmp/mnt/a','foo'); (await require('fs/promises').readFile('/tmp/mnt/a')).toString()
> Uncaught [Error: ETIMEDOUT: connection timed out, open '/tmp/mnt/a'] {
errno: -110,
code: 'ETIMEDOUT',
syscall: 'open',
path: '/tmp/mnt/a'