mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
14 lines
417 B
Dart
14 lines
417 B
Dart
import 'package:nc_photos/account.dart';
|
|
import 'package:nc_photos/di_container.dart';
|
|
import 'package:nc_photos/entity/file.dart';
|
|
|
|
class LsSingleFile {
|
|
LsSingleFile(this._c) : assert(require(_c));
|
|
|
|
static bool require(DiContainer c) => DiContainer.has(c, DiType.fileRepo);
|
|
|
|
Future<File> call(Account account, String path) =>
|
|
_c.fileRepo.listSingle(account, File(path: path));
|
|
|
|
final DiContainer _c;
|
|
}
|