exists static method

bool exists(
  1. EagleLibrary lib,
  2. String id
)

Implementation

static bool exists(EagleLibrary lib, String id) {
  // Check if .info directory exists and contains metadata.json
  final infoDir = Directory("${lib.path}/images/$id.info");
  if (infoDir.existsSync()) {
    final metadataFile = File("${lib.path}/images/$id.info/metadata.json");
    return metadataFile.existsSync();
  }
  return false;
}