We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodeJs does not implement WASI's fs_readdir on Windows: https://github.com/nodejs/node/blob/6f4d6011ea1b448cf21f5d363c44e4a4c56ca34c/deps/uvwasi/src/uvwasi.c#L19
fs_readdir
We need to somehow work around the lack of support to allow file listing on Windows.
The text was updated successfully, but these errors were encountered:
Did you manage to find an issue/PR that describes the why? This feels so strange.
Sorry, something went wrong.
The top-level issue, I guess, would be: nodejs/uvwasi#11
Although it doesn't explicitly mention an actual reason.
Damn that's old... Doesn't look good long term.
Things are not that bad in the long term, I believe.
uvwasi uses telldir and seekdir to correctly support cookie parameter in WASI 0.1's fd_readdir. Neither of these functions is available on Windows.
uvwasi
cookie
fd_readdir
It's possible to somehow emulate these functions on Windows, but I don't think it's worth as WASI 0.2 replaced fd_readdir with a directory stream that provides only sequential access to its entries.
So the problem should gone as soon as WASI 0.2+ will be supported.
No branches or pull requests
NodeJs does not implement WASI's
fs_readdir
on Windows: https://github.com/nodejs/node/blob/6f4d6011ea1b448cf21f5d363c44e4a4c56ca34c/deps/uvwasi/src/uvwasi.c#L19We need to somehow work around the lack of support to allow file listing on Windows.
The text was updated successfully, but these errors were encountered: