MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / createArchivePath

Function createArchivePath

apps/kimi-code/src/feedback/archive.ts:62–68  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

60}
61
62async function createArchivePath(filename: string): Promise<string> {
63 await removeStaleFeedbackUploads();
64 const root = join(getCacheDir(), 'feedback-uploads');
65 await mkdir(root, { recursive: true });
66 const dir = await mkdtemp(join(root, 'upload-'));
67 return join(dir, filename);
68}
69
70function archivePathCleanupDir(archivePath: string): string {
71 return dirname(archivePath);

Callers 1

Calls 4

getCacheDirFunction · 0.90
mkdtempFunction · 0.85
mkdirFunction · 0.50

Tested by

no test coverage detected