MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / backupStamp

Function backupStamp

apps/desktop/src/main/reset-state.ts:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23const STATE_ENTRIES = ["data.db", "data.db-wal", "data.db-shm", "server-control"];
24
25const backupStamp = () =>
26 new Date()
27 .toISOString()
28 .replace(/[-:]/g, "")
29 .replace(/\.\d+Z$/, "Z");
30
31export interface ResetStateResult {
32 readonly backupDir: string;

Callers 1

resetExecutorStateFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected