{#if node.isFolder && depth === 0} {#each node.children as child} {/each} {:else if node.isFolder}
{#if isExpanded(node.path)} {#each node.children as child} {/each} {/if}
{:else} {/if}