Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On Windows, ignore files for which
full_metadata
fails.
On Windows, `metadata` computes only partial metadata results, which don't include what WASI needs for the `inode` field in `readdir` results. cap-std has a `full_metadata` function which is able to include this extra information, however it has more strict access requirements, so it sometimes fails even when plain `metadata` would succeed. Make WASI's `readdir` silently skip over files that can't be accessed by `full_metadata`. These files wouldn't be openable in any other way by WASI programs, so the only benefit of listing them would be to let applications know that they exist. This allows it to avoid failing and avoid returning bogus results. This is part of a fix for bytecodealliance/cap-std#169.
- Loading branch information