mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-22 01:06:34 +00:00
File browser overview page improvements
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user