Skip to main content

check_lock

Function check_lock 

Source
pub fn check_lock(
    mana_dir: &Path,
    file_path: &str,
) -> Result<Option<LockInfo>, Error>
Expand description

Check if a file is currently locked.

Returns the lock info if locked by a live process, None otherwise. Automatically cleans stale locks.