MCPcopy
hub / github.com/codeaashu/claude-code / getScratchpadDir

Function getScratchpadDir

src/utils/permissions/filesystem.ts:384–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 * Path format: /tmp/claude-{uid}/{sanitized-cwd}/{sessionId}/scratchpad/
383 */
384export function getScratchpadDir(): string {
385 return join(getProjectTempDir(), getSessionId(), 'scratchpad')
386}
387
388/**
389 * Ensures the scratchpad directory exists for the current session.

Callers 5

submitMessageMethod · 0.85
ensureScratchpadDirFunction · 0.85
isScratchpadPathFunction · 0.85
REPLFunction · 0.85

Calls 2

getProjectTempDirFunction · 0.85
getSessionIdFunction · 0.85

Tested by

no test coverage detected