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

Function syncFolderTreeSelection

public/js/folderManager.js:2487–2498  ·  view source on GitHub ↗
(selected)

Source from the content-addressed store, hash-verified

2485}
2486
2487export function syncFolderTreeSelection(selected) {
2488 const container = document.getElementById('folderTreeContainer');
2489 if (!container) return;
2490 container.querySelectorAll(".folder-option").forEach(el => el.classList.remove("selected"));
2491 if (selected) {
2492 try {
2493 const opt = container.querySelector(`.folder-option[data-folder="${CSS.escape(selected)}"]`);
2494 if (opt) opt.classList.add("selected");
2495 } catch (e) { /* ignore */ }
2496 }
2497 updateFolderActionButtons();
2498}
2499
2500async function selectFolder(selected) {
2501 const container = document.getElementById('folderTreeContainer');

Callers 3

setActivePaneFunction · 0.85
loadFileListFunction · 0.85
renameFolderInlineFunction · 0.85

Calls 1

Tested by

no test coverage detected