mise API - v0.0.0
    Preparing search index...

    Type Alias ListingOutcome

    ListingOutcome:
        | { data: FilteredResourceData; kind: "listing" }
        | { kind: "empty" }
        | { kind: "missing" }
        | { error: Error; kind: "refused" }

    What a listing attempt came back as.

    files_listAll answers null for three different things — an empty folder, a folder that is not there, and a folder the server would not describe — and nothing above it can behave correctly on one word that means all three (#462). This says which.

    Type Declaration

    • { data: FilteredResourceData; kind: "listing" }

      The folder answered, with these entries (possibly none of them).

    • { kind: "empty" }

      The folder answered and holds nothing of this kind.

    • { kind: "missing" }

      No such folder, or no context to resolve one against.

    • { error: Error; kind: "refused" }

      The folder exists as far as anyone knows; the server would not say.