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

Function normalizeFolderToastKey

public/js/fileDragDrop.js:23–27  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

21}
22
23function normalizeFolderToastKey(path) {
24 const raw = String(path || '').trim();
25 if (!raw || raw.toLowerCase() === 'root') return 'root';
26 return raw;
27}
28
29function formatFolderPathForToast(path) {
30 const key = normalizeFolderToastKey(path);

Callers 3

formatFolderPathForToastFunction · 0.70
movedFolderNameForToastFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected