Skip to content
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

Exclude . and .. from directory iteration. #93

Merged

Conversation

sunfishcode
Copy link
Member

Add text excluding . and .. from readdir directory iteration. In most use cases, they act as navigational mechanisms rather than meaningful contents of directories.

Wasi-libc will be expected to re-add . and .. when implementing the POSIX readdir interface.

Fixes #90.

@sunfishcode sunfishcode force-pushed the sunfishcode/no-dot-or-dot-dot branch 2 times, most recently from 23cb823 to 546d79b Compare February 10, 2023 21:59
Add text excluding `.` and `..` from `readdir` directory iteration. In
most use cases, they act as navigational mechanisms rather than
meaningful contents of directories.

Wasi-libc will be expected to re-add `.` and `..` when implementing the
POSIX `readdir` interface.

Fixes WebAssembly#90.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add text and tests for a rule around "." and ".." entries in directory listings
1 participant