Skip to content

fix #24521: propagate checkDir in static walkDir - #25983

Open
nimamasl114514 wants to merge 1 commit into
nim-lang:develfrom
nimamasl114514:fix-24521
Open

fix #24521: propagate checkDir in static walkDir#25983
nimamasl114514 wants to merge 1 commit into
nim-lang:develfrom
nimamasl114514:fix-24521

Conversation

@nimamasl114514

Copy link
Copy Markdown
Contributor

Summary

  • Propagate checkDir parameter in staticWalkDir so that the static (VM) implementation matches the runtime walkDir behavior.
  • staticWalkDir now accepts an optional checkDir = false argument, forwarded to the native walkDir.
  • Adds regression tests for backward compatibility and the static block error path.

Fixes #24521

The nimvm/weirdTarget branch of walkDir forwarded to staticWalkDir
without the checkDir argument, so walkDir("missing", checkDir=true)
silently succeeded at compile time instead of raising OSError. Thread
checkDir through staticWalkDir and its vmop so the flag is honored.
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.

static walkDir(checkDir=true) does not raise error

2 participants