MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / isAutoMemPath

Function isAutoMemPath

restored-src/src/memdir/paths.ts:274–278  ·  view source on GitHub ↗
(absolutePath: string)

Source from the content-addressed store, hash-verified

272 * false for it.
273 */
274export function isAutoMemPath(absolutePath: string): boolean {
275 // SECURITY: Normalize to prevent path traversal bypasses via .. segments
276 const normalizedPath = normalize(absolutePath)
277 return normalizedPath.startsWith(getAutoMemPath())
278}

Callers 5

isAutoMemFileFunction · 0.85
hasMemoryWritesSinceFunction · 0.85
createAutoMemCanUseToolFunction · 0.85

Calls 2

normalizeFunction · 0.50
startsWithMethod · 0.45

Tested by

no test coverage detected