e.stopPropagation()} role="dialog">
Pick a folder on the server
✕
{#if loading}
Loading…
{:else if error}
{error}
{:else if current}
{#if current.parent}
go(current!.parent!)}>← up
{/if}
{current.path}
{#each current.entries.filter(e => e.is_dir) as e}
go(`${current!.path === '/' ? '' : current!.path}/${e.name}`)}> 📁 {e.name}
{/each}
{/if}