MCPcopy Create free account
hub / github.com/Coneja-Chibi/CarrotKernel / handleFileClick

Function handleFileClick

index.js:4078–4087  ·  view source on GitHub ↗
(path, type, name)

Source from the content-addressed store, hash-verified

4076 </div>
4077 `;
4078 }
4079
4080 return html;
4081}
4082
4083// Handle file/folder clicks
4084async function handleFileClick(path, type, name) {
4085 if (type === 'dir') {
4086 await navigateToPath(path);
4087 } else if (type === 'file') {
4088 // Preview any file type - JSON packs or README files
4089 await previewFile(path, name);
4090 }

Callers 1

index.jsFile · 0.85

Calls 2

navigateToPathFunction · 0.85
previewFileFunction · 0.85

Tested by

no test coverage detected