Commit 572e87c9 by Johannes Zellner

Show folders first

1 parent a26d1f9b
Showing with 1 additions and 0 deletions
......@@ -81,6 +81,7 @@ function loadDirectory(filePath) {
if (error) return console.error(error);
if (result.statusCode === 401) return logout();
result.body.entries.sort(function (a, b) { return a.isDirectory && b.isFile ? -1 : 1 });
app.entries = result.body.entries.map(function (entry) {
entry.previewUrl = getPreviewUrl(entry, filePath);
return entry;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!