{#each tree.entries as entry (entry.path)} {#if entry.kind === "tree"} {:else} onSelect({ detail: entry.path })}> {/if} {/each}