-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Get WASI set up enough to do a directory list #1297
Conversation
...💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛💜💙💚💛
Outdated
Show resolved
Hide resolved
da1675b
to
de46239
Compare
|
||
// In theory, fd_readdir uses a 'cookie' field to page through results. In practice the NodeJS | ||
// implementation doesn't honor the cookie and directories with large file names don't progress. | ||
// Instead, just grow the buffer until the entire directory fits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @sdeleuze not sure if you ran into similar problems. I tested this on some long file names and it got very grumpy very fast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test it with very long filenames, thanks for the feedback.
I can't yet import AbstractFileSystemTest as that has a kotlinx-datetime dependency, and that artifact isn't available to WASM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only does it list, but it writes too!
okio-wasifilesystem/src/wasmMain/kotlin/okio/internal/preview1/Wasi.kt
Outdated
Show resolved
Hide resolved
It doesn't work on Windows yet.
No description provided.