(filePath: string, id: string)
| 145 | } |
| 146 | |
| 147 | private touchSession(filePath: string, id: string): void { |
| 148 | try { |
| 149 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
| 150 | fs.writeFileSync(filePath, `${Date.now()}|${id}`, "utf-8"); |
| 151 | } catch {} |
| 152 | } |
| 153 | |
| 154 | private loadOrCreateFirstSeen(stateDir: string): string { |
| 155 | const filePath = path.join(stateDir, "memos-local", ".first-seen"); |
no outgoing calls
no test coverage detected