File Manager

Current: {currentPath}
{#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}
{#if loading}
Loading...
{:else} {#if currentPath !== '/'}
navigateTo('/')}> 📁 ..
{/if} {#each directories as dir}
📁 navigateTo(currentPath + '/' + dir.name)} >{dir.name}
{/each} {#each files as file}
📄 {file.name} {formatBytes(file.size)}
{/each} {#if files.length === 0 && directories.length === 0}
Directory is empty
{/if} {/if}