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

Function getBaseDirectories

src/utils/nativeInstaller/installer.ts:115–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115function getBaseDirectories() {
116 const platform = getPlatform()
117 const executableName = getBinaryName(platform)
118
119 return {
120 // Data directories (permanent storage)
121 versions: join(getXDGDataHome(), 'claude', 'versions'),
122
123 // Cache directories (can be deleted)
124 staging: join(getXDGCacheHome(), 'claude', 'staging'),
125
126 // State directories
127 locks: join(getXDGStateHome(), 'claude', 'locks'),
128
129 // User bin
130 executable: join(getUserBinDir(), executableName),
131 }
132}
133
134async function isPossibleClaudeBinary(filePath: string): Promise<boolean> {
135 try {

Callers 9

getVersionPathsFunction · 0.85
tryWithVersionLockFunction · 0.85
performVersionUpdateFunction · 0.85
updateLatestFunction · 0.85
checkInstallFunction · 0.85
lockCurrentVersionFunction · 0.85
forceRemoveLockFunction · 0.85
cleanupOldVersionsFunction · 0.85
removeInstalledSymlinkFunction · 0.85

Calls 6

getPlatformFunction · 0.85
getBinaryNameFunction · 0.85
getXDGDataHomeFunction · 0.85
getXDGCacheHomeFunction · 0.85
getXDGStateHomeFunction · 0.85
getUserBinDirFunction · 0.85

Tested by

no test coverage detected