Home > @magiclane/maps-sdk > RecorderBookmarks > markLogProtected
RecorderBookmarks.markLogProtected() method
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.
Signature:
markLogProtected(logPath: string): GemError;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
logPath |
string |
The path to the GM file to mark as protected. |
Returns:
GemError
- GemError.success when the operation succeeds. - GemError.general when the operation fails.