MCPcopy Create free account
hub / github.com/6dylan6/jdm / tryLock

Method tryLock

function/magic.js:513–520  ·  view source on GitHub ↗
(username, key)

Source from the content-addressed store, hash-verified

511 }
512
513 tryLock(username, key) {
514 try {
515 fs.accessSync(`/jd/log/lock/${key}_${username}`);
516 return false;
517 } catch (e) {
518 return true;
519 }
520 }
521
522 setLock(username, key) {
523 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected