Add chat files panel explorer shell with sorting and views
This commit is contained in:
@@ -9,6 +9,8 @@ class DirectoryEntry {
|
||||
required this.isDir,
|
||||
required this.isGitRepo,
|
||||
required this.hidden,
|
||||
this.size,
|
||||
this.modified,
|
||||
});
|
||||
|
||||
factory DirectoryEntry.fromJson(JsonMap json) => DirectoryEntry(
|
||||
@@ -17,6 +19,8 @@ class DirectoryEntry {
|
||||
isDir: json['is_dir'] == true,
|
||||
isGitRepo: json['is_git_repo'] == true,
|
||||
hidden: json['hidden'] == true,
|
||||
size: json['size'] is num ? (json['size'] as num).toInt() : null,
|
||||
modified: json['modified'] is String ? json['modified'] as String : null,
|
||||
);
|
||||
|
||||
final String name;
|
||||
@@ -24,6 +28,8 @@ class DirectoryEntry {
|
||||
final bool isDir;
|
||||
final bool isGitRepo;
|
||||
final bool hidden;
|
||||
final int? size;
|
||||
final String? modified;
|
||||
}
|
||||
|
||||
/// The server's home-restricted listing of one folder.
|
||||
|
||||
Reference in New Issue
Block a user