get_lock_file_name

Function get_lock_file_name 

Source
pub fn get_lock_file_name(
    directory: &Path,
    name: &str,
) -> Result<PathBuf, LockError>
Expand description

Converts a lock name to a safe file name and constructs the full path.

ยงRules

  • Names with only alphanumeric, -, and _ are used as-is (with prefix)
  • Other characters are replaced with underscores
  • A Base32 hash is appended to ensure uniqueness and case-sensitivity
  • The result is truncated to fit filesystem limits