Fix incompatible getFileDescriptors api calls

This commit is contained in:
Ming Ming 2023-12-10 16:27:10 +08:00
parent 15ed907c34
commit 10b263834d
3 changed files with 11 additions and 5 deletions

View file

@ -54,11 +54,11 @@ class SearchSqliteDbDataSource implements SearchDataSource {
try {
final args = {
#account: account.toDb(),
#includeRelativePaths: account.roots,
#excludeRelativePaths: [
#includeRelativeRoots: account.roots,
#excludeRelativeRoots: [
remote_storage_util.remoteStorageDirRelativePath
],
#relativePathKeywords: keywords,
#relativePathKeywords: keywords.toList(),
#mimes: file_util.supportedFormatMimes,
};
for (final f in criteria.filters) {
@ -84,8 +84,8 @@ class SearchSqliteDbDataSource implements SearchDataSource {
try {
final args = {
#account: account.toDb(),
#includeRelativePaths: account.roots,
#excludeRelativePaths: [
#includeRelativeRoots: account.roots,
#excludeRelativeRoots: [
remote_storage_util.remoteStorageDirRelativePath
],
#location: criteria.input,

View file

@ -275,7 +275,9 @@ abstract class NpDb {
List<int>? fileIds,
List<String>? includeRelativeRoots,
List<String>? excludeRelativeRoots,
List<String>? relativePathKeywords,
String? location,
bool? isFavorite,
List<String>? mimes,
int? limit,
});

View file

@ -439,7 +439,9 @@ class NpDbSqlite implements NpDb {
List<int>? fileIds,
List<String>? includeRelativeRoots,
List<String>? excludeRelativeRoots,
List<String>? relativePathKeywords,
String? location,
bool? isFavorite,
List<String>? mimes,
int? limit,
}) async {
@ -449,7 +451,9 @@ class NpDbSqlite implements NpDb {
fileIds: fileIds,
includeRelativeRoots: includeRelativeRoots,
excludeRelativeRoots: excludeRelativeRoots,
relativePathKeywords: relativePathKeywords,
location: location,
isFavorite: isFavorite,
mimes: mimes,
limit: limit,
);