Show file attributes in file explorer

This commit is contained in:
crschnick
2023-04-26 23:01:27 +00:00
parent a458f6ffe5
commit dbd0cb2d68
4 changed files with 39 additions and 7 deletions

View File

@@ -26,12 +26,15 @@ public interface FileSystem extends Closeable, AutoCloseable {
boolean hidden;
Boolean executable;
long size;
String mode;
public FileEntry(
@NonNull FileSystem fileSystem, @NonNull String path, Instant date, boolean directory, boolean hidden, Boolean executable,
long size
long size,
String mode
) {
this.fileSystem = fileSystem;
this.mode = mode;
this.path = directory ? FileNames.toDirectory(path) : path;
this.date = date;
this.directory = directory;