MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / buildKey

Function buildKey

lib/interfaces/webdav-locks.ts:14–16  ·  view source on GitHub ↗
(userId: string, path: string)

Source from the content-addressed store, hash-verified

12const locksByKey = new Map<string, WebDavLock>();
13
14function buildKey(userId: string, path: string) {
15 return `${userId}:${path}`;
16}
17
18function isExpired(lock: WebDavLock) {
19 return lock.expiresAt.getTime() <= Date.now();

Callers 5

hasDescendantLockFunction · 0.85
findBlockingLockFunction · 0.85
acquireLockFunction · 0.85
refreshLockFunction · 0.85
releaseLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected