Skip to content

request: exists(File | Directory) STDLIB function #692

Description

@a-frantz

I want to do something like this:

    output {
        Array[String] labels = if exists("labels.txt") then read_lines("labels.txt") else []
    }

but am currently writing an ugly workaround to achieve the same logic.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    S06-voting-active(State) Changes for which voting is active.T-stdlib(Topic) Issues related to the standard library.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions