getEntryType method
- String path
Returns the type of repository entry (file, directory, ...) or None
if the entry doesn't
exist.
Implementation
Future<EntryType?> getEntryType(
String path,
) async {
final request = RequestRepositoryGetEntryType(
repo: handle,
path: path,
);
final response = await client.invoke(request);
switch (response) {
case ResponseEntryType(value: final value): return value;
case ResponseNone(): return null;
default: throw UnexpectedResponse();
}
}