getLogMetadata method
- String logPath
Retrieves metadata for a specific log file.
Parameters
logPath: The path to the log file for which metadata is requested.
Returns
- A LogMetadata instance when the file exists and metadata could be
read, or
nullif the file does not exist or an error occurred.
Implementation
LogMetadata? getLogMetadata(final String logPath) {
final OperationResult resultString = objectMethod(
pointerId,
'RecorderBookmarks',
'getMetadata',
args: logPath,
);
final int id = resultString['result'];
if (id == -1) {
return null;
}
return LogMetadata(resultString['result']);
}