Returns
APIResponse<boolean>:result === truemeans the lock operation succeeded
- Clears the unlocked record for this path in the current plugin session. If the path was previously unlocked via
unlockPathWithPassword, calling this resets it back to the locked (not unlocked) state. - After calling this,
getPathEncryptionStatusreturns1for this path instead of2, and subsequent file-related API calls on this exact path require unlocking again viaunlockPathWithPasswordif the path is still encrypted. - Has no effect on a path that is not encrypted.