markLogProtected method

GemError markLogProtected(
  1. String logPath
)

Marks a GM log as protected to prevent automatic deletion.

This flag stops the system from removing the file during cleanup or retention-based pruning. Only GM logs are supported by this operation.

Parameters

  • logPath: The path to the GM file to mark as protected.

Returns

See also:

Implementation

GemError markLogProtected(final String logPath) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RecorderBookmarks',
    'markLogProtected',
    args: logPath,
  );
  return GemErrorExtension.fromCode(resultString['result']);
}