{#await list}
Loading...
{:then list} {#if path} {/if} {#each list as item} {#if item.type === 'directory'} {:else} {/if} {shortName(item)} {/each} {:catch error}

{error.message}

{/await}