MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isAutoMemPath

Function isAutoMemPath

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}
279

Callers 5

isAutoMemFileFunction · 0.85
hasMemoryWritesSinceFunction · 0.85
createAutoMemCanUseToolFunction · 0.85

Calls 1

normalizeFunction · 0.50

Tested by

no test coverage detected