Skip to content

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

@a-frantz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S02-needs-owner(State) An issue that needs an individual to write an RFC.T-stdlib(Topic) Issues related to the standard library.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions