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

Function normalizeFolderToastKey

public/js/folderManager.js:114–118  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

112}
113
114function normalizeFolderToastKey(path) {
115 const raw = String(path || '').trim();
116 if (!raw || raw.toLowerCase() === 'root') return 'root';
117 return raw;
118}
119
120function formatFolderPathForToast(path) {
121 const key = normalizeFolderToastKey(path);

Callers 3

formatFolderPathForToastFunction · 0.70
movedFolderNameForToastFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected