File browser overview page improvements

This commit is contained in:
crschnick
2023-05-29 00:33:34 +00:00
parent 40a5c6a306
commit 52cdcfa0aa
21 changed files with 367 additions and 113 deletions
@@ -53,7 +53,7 @@ public sealed interface OsType permits OsType.Windows, OsType.Linux, OsType.MacO
@Override
public List<String> determineInterestingPaths(ShellControl pc) throws Exception {
var home = getHomeDirectory(pc);
return List.of(FileNames.join(home, "Desktop"));
return List.of(home, FileNames.join(home, "Documents"), FileNames.join(home, "Downloads"), FileNames.join(home, "Desktop"));
}
@Override
@@ -42,6 +42,11 @@ public interface FileSystem extends Closeable, AutoCloseable {
this.executable = executable;
this.size = size;
}
public static FileEntry ofDirectory(FileSystem fileSystem, String path) {
return new FileEntry(fileSystem, path, Instant.now(), true, false, false, 0, null);
}
}
FileSystemStore getStore();