Skip to content

Nimscript listFiles should throw exception when path is not found #12676

Open
@dom96

Description

listFiles will silently return no items if the path specified does not exist, this can make it seem like a command has worked when it in fact has not.

Example

task render, "Renders SVGs to PNGs":
  for file in listFiles(getCurrentDir() / "bad_path"):
    discard

Current Output

Nothing

Expected Output

Exception

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions