MCPcopy Create free account
hub / github.com/Noumena-Network/code / getNcodeTempDirName

Function getNcodeTempDirName

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

Source from the content-addressed store, hash-verified

315 * On Windows: 'ncode' (tmpdir() is already per-user)
316 */
317export function getNcodeTempDirName(): string {
318 if (getPlatform() === 'windows') {
319 return 'ncode'
320 }
321 // Use UID to create per-user directories, preventing permission conflicts
322 // when multiple users share the same /tmp directory
323 const uid = process.getuid?.() ?? 0
324 return `ncode-${uid}`
325}
326
327/**
328 * Returns the NCode 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