tomFileLockPath function

String tomFileLockPath(
  1. String path
)

The guard file protecting path.

A sibling rather than path itself, because the file being protected is replaced by a rename on every write: a guard held on it would be a guard on an inode that no longer has the name.

Implementation

String tomFileLockPath(String path) => '$path.lock';