exists method

  1. @override
Future<bool> exists(
  1. EaglePath path
)
override

Implementation

@override
Future<bool> exists(EaglePath path) async {
  try {
    final candidate = _lexical(path);
    final type = await FileSystemEntity.type(candidate, followLinks: false);
    if (type == FileSystemEntityType.notFound) return false;
    await _resolvedContained(candidate, type);
    return true;
  } on EagleSourceException {
    rethrow;
  } catch (error) {
    throw EagleSourceException(
      'Library path cannot be inspected.',
      cause: error,
    );
  }
}