MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getClaudeTempDirName

Function getClaudeTempDirName

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

Source from the content-addressed store, hash-verified

305 * On Windows: 'claude' (tmpdir() is already per-user)
306 */
307export function getClaudeTempDirName(): string {
308 if (getPlatform() === 'windows') {
309 return 'claude'
310 }
311 // Use UID to create per-user directories, preventing permission conflicts
312 // when multiple users share the same /tmp directory
313 const uid = process.getuid?.() ?? 0
314 return `claude-${uid}`
315}
316
317/**
318 * Returns the Claude temp directory path with symlinks resolved.

Callers 2

execFunction · 0.85
filesystem.tsFile · 0.85

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected