The .sglock
folder is a folder that contains 'lock files' when any SnapGene file in a parent Collection folder or Project folder (SnapGene 7.0 or later) is opened and edited.
Each edited SnapGene file will have its own 'lock file' named with the following convention <FILE>=<HOST>=<PID>
.
Lock files are created to ensure SnapGene will know, in a platform agnostic way, that a user is editing the corresponding SnapGene file. This prevents multiple users from simultaneously editing the same file.
'Lock files' are text files that contain a timestamp that is refreshed every 30 seconds. This ensures if snapgene crashes, or the computer crashes, or the network fails, then the lock file can expire and allow someone else to edit the file.
When a SnapGene file is closed gracefully, the 'lock file' is deleted, and so is the .sglock
folder if empty.