isMatlabFile static method
Check if a file is a MATLAB v7.3 file
Returns true if the file appears to be MATLAB v7.3 format. Note: This is a best-effort check based on HDF5 structure and attributes.
Implementation
static Future<bool> isMatlabFile(String path) async {
try {
final reader = await MatV73Reader.open(path);
try {
final varNames = reader.listVariables();
return varNames.isNotEmpty;
} finally {
await reader.close();
}
} catch (_) {
return false;
}
}