MCPcopy Create free account
hub / github.com/error311/FileRise / formatBreadcrumbText

Function formatBreadcrumbText

public/js/fileListView.js:2306–2312  ·  view source on GitHub ↗
(folder, sourceId = '')

Source from the content-addressed store, hash-verified

2304}
2305
2306function formatBreadcrumbText(folder, sourceId = '') {
2307 const path = (typeof folder === 'string' && folder.length) ? folder : 'root';
2308 const rootLabel = getRootCrumbLabel(sourceId);
2309 if (path === 'root') return rootLabel;
2310 const parts = path.split('/').filter(Boolean);
2311 return [rootLabel, ...parts].join(' › ');
2312}
2313
2314function resolvePaneFolderForTitle(paneKey, { fallbackToCurrent = false } = {}) {
2315 if (!paneKey) return '';

Callers 1

Calls 2

splitMethod · 0.80
getRootCrumbLabelFunction · 0.70

Tested by

no test coverage detected