This commit is contained in:
lollipopkit
2023-06-03 21:15:26 +08:00
parent 8c25b5e60b
commit 261b8e9d29
9 changed files with 49 additions and 36 deletions

View File

@@ -8,15 +8,14 @@ class SftpProvider extends ProviderBase {
final List<SftpReqStatus> _status = [];
List<SftpReqStatus> get status => _status;
List<SftpReqStatus> gets({int? id, String? fileName}) {
var found = <SftpReqStatus>[];
Iterable<SftpReqStatus> gets({int? id, String? fileName}) {
Iterable<SftpReqStatus> found = [];
if (id != null) {
found = _status.where((e) => e.id == id).toList();
found = _status.where((e) => e.id == id);
}
if (fileName != null) {
found = found
.where((e) => e.item.localPath.split('/').last == fileName)
.toList();
.where((e) => e.item.localPath.split('/').last == fileName);
}
return found;
}

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 343;
static const int build = 344;
static const String engine = "3.10.2";
static const String buildAt = "2023-06-01 16:27:31.059809";
static const String buildAt = "2023-06-02 22:02:47.585289";
static const int modifications = 4;
}