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

Function carryFolderColor

public/js/folderManager.js:2175–2182  ·  view source on GitHub ↗
(sourceFolder, newPath)

Source from the content-addressed store, hash-verified

2173 Color-carry helper (fix #2)
2174----------------------*/
2175async function carryFolderColor(sourceFolder, newPath) {
2176 const oldColor = window.folderColorMap[sourceFolder];
2177 if (!oldColor) return;
2178 try {
2179 await saveFolderColor(newPath, oldColor);
2180 await saveFolderColor(sourceFolder, '');
2181 } catch (e) {}
2182}
2183
2184/* ----------------------
2185 Shared tree sync after a folder move

Callers 3

syncTreeAfterFolderMoveFunction · 0.85
renameFolderInlineFunction · 0.85
folderManager.jsFile · 0.85

Calls 1

saveFolderColorFunction · 0.85

Tested by

no test coverage detected