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

Function tryRmdir

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

Source from the content-addressed store, hash-verified

146}
147
148async function tryRmdir(dirPath: string, fsImpl: FsOperations): Promise<void> {
149 try {
150 await fsImpl.rmdir(dirPath)
151 } catch {
152 // not empty / doesn't exist
153 }
154}
155
156export async function cleanupOldSessionFiles(): Promise<CleanupResult> {
157 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