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

walkDir ignores errors reported by C #10309

Open
wizzardx opened this issue Jan 15, 2019 · 0 comments
Open

walkDir ignores errors reported by C #10309

wizzardx opened this issue Jan 15, 2019 · 0 comments

Comments

@wizzardx
Copy link
Contributor

os.walkDir swallows errors returned from C.

eg, if dir doesn't exist, or device has errors, or permissions are bad, the os.walkDir function always returns successfully.

Example

for p in walkDir("/tmpXXXXX"):
    echo p
echo "Hello"

walkDir will never raise an exception.

This affects Nim 0.19.2.

Related Nim forum discussion thread:

https://forum.nim-lang.org/t/4546

@stale stale bot added the stale Staled PR/issues; remove the label after fixing them label Aug 4, 2020
@nim-lang nim-lang deleted a comment from stale bot Oct 5, 2021
@stale stale bot removed the stale Staled PR/issues; remove the label after fixing them label Oct 5, 2021
@a-mr a-mr mentioned this issue Dec 17, 2021
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants