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

Function tryRmdir

src/utils/cleanup.ts:147–153  ·  view source on GitHub ↗
(dirPath: string, fsImpl: FsOperations)

Source from the content-addressed store, hash-verified

145}
146
147async function tryRmdir(dirPath: string, fsImpl: FsOperations): Promise<void> {
148 try {
149 await fsImpl.rmdir(dirPath)
150 } catch {
151 // not empty / doesn't exist
152 }
153}
154
155export async function cleanupOldSessionFiles(): Promise<CleanupResult> {
156 const cutoffDate = getCutoffDate()

Callers 5

cleanupOldMessageFilesFunction · 0.85
cleanupOldSessionFilesFunction · 0.85
cleanupSingleDirectoryFunction · 0.85
cleanupOldSessionEnvDirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected