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

Function movedFolderNameForToast

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

Source from the content-addressed store, hash-verified

123}
124
125function movedFolderNameForToast(path) {
126 const key = normalizeFolderToastKey(path);
127 if (key === 'root') return t('root_folder') || 'Root';
128 const parts = key.split('/').filter(Boolean);
129 return parts.length ? parts[parts.length - 1] : key;
130}
131
132function buildMoveFolderSuccessToast(sourceFolder, destinationFolder) {
133 const movedName = movedFolderNameForToast(sourceFolder);

Callers 1

Calls 3

tFunction · 0.85
splitMethod · 0.80
normalizeFolderToastKeyFunction · 0.70

Tested by

no test coverage detected