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

Function refreshCurrentFolderCaps

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

Source from the content-addressed store, hash-verified

4479}
4480
4481async function refreshCurrentFolderCaps(folder, sourceId = '', paneKey = '') {
4482 const pane = paneKey ? normalizePaneKey(paneKey) : normalizePaneKey(window.activePane);
4483 const resolvedSource = sourceId || getPaneSourceId(pane);
4484 window.currentFolderCaps = null;
4485 savePaneState(pane, { currentFolderCaps: null });
4486 try {
4487 const caps = await fetchFolderCaps(folder, resolvedSource);
4488 window.currentFolderCaps = caps || null;
4489 savePaneState(pane, { currentFolderCaps: window.currentFolderCaps });
4490 } catch (e) {
4491 window.currentFolderCaps = null;
4492 savePaneState(pane, { currentFolderCaps: null });
4493 }
4494 updateEncryptedFolderBanner(folder);
4495 refreshEncryptedFolderIconsInList();
4496 applyEncryptedFolderUiRestrictions();
4497 updateFileActionButtons();
4498}
4499
4500// --- Folder owner cache + helper ----------------------
4501const _folderOwnerCache = new Map();

Callers 1

loadFileListFunction · 0.85

Calls 8

normalizePaneKeyFunction · 0.85
getPaneSourceIdFunction · 0.85
savePaneStateFunction · 0.85
fetchFolderCapsFunction · 0.85
updateFileActionButtonsFunction · 0.85

Tested by

no test coverage detected