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