File System
{#if error}
{error}
{/if} {#if uploadProgress}
Uploading... {uploadProgress.percentage.toFixed(1)}% ({formatBytes(uploadProgress.bytesTransferred)} / {formatBytes(uploadProgress.totalBytes)})
{/if} {#if downloadProgress}
Downloading... {downloadProgress.percentage.toFixed(1)}% ({formatBytes(downloadProgress.bytesTransferred)} / {formatBytes(downloadProgress.totalBytes)})
{/if}
{currentPath} {#if currentPath !== '/'} {/if}
{#if loading} {:else} {#each directories as dir (dir.name)}
{/each} {#each files as file (file.name)}
{/each} {#if files.length === 0 && directories.length === 0}
Directory is empty
{/if} {/if}
{#if selectedFile}

{selectedFile}

{#if isEditing} {:else} {/if}
{#if fileLoading} {:else if isEditing} {:else}
{fileContent}
{/if} {:else}
Select a file to view its contents
{/if}