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

Function fetchFolderOwner

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

Source from the content-addressed store, hash-verified

4501const _folderOwnerCache = new Map();
4502
4503async function fetchFolderOwner(folder, sourceId = '') {
4504 if (!folder) return "";
4505 const key = folderCacheKey(folder, sourceId);
4506 if (_folderOwnerCache.has(key)) {
4507 return _folderOwnerCache.get(key);
4508 }
4509
4510 try {
4511 const data = await fetchFolderCaps(folder, sourceId);
4512 const owner = data && (data.owner || data.user || "");
4513 _folderOwnerCache.set(key, owner || "");
4514 return owner || "";
4515 } catch (e) {
4516 _folderOwnerCache.set(key, "");
4517 return "";
4518 }
4519}
4520// ---- Viewed badges (table + gallery) ----
4521// ---------- Badge factory (center text vertically) ----------
4522function makeBadge(state) {

Callers

nothing calls this directly

Calls 4

folderCacheKeyFunction · 0.85
fetchFolderCapsFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected