nc-photos/lib/use_case/ls_single_file.dart

12 lines
277 B
Dart
Raw Normal View History

2021-07-02 21:43:15 +02:00
import 'package:nc_photos/account.dart';
import 'package:nc_photos/entity/file.dart';
class LsSingleFile {
LsSingleFile(this.fileRepo);
2021-07-02 21:43:15 +02:00
Future<File> call(Account account, String path) =>
fileRepo.listSingle(account, File(path: path));
2021-07-02 21:43:15 +02:00
final FileRepo fileRepo;
2021-07-02 21:43:15 +02:00
}