(path)
| 123 | } |
| 124 | |
| 125 | function 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 | |
| 132 | function buildMoveFolderSuccessToast(sourceFolder, destinationFolder) { |
| 133 | const movedName = movedFolderNameForToast(sourceFolder); |
no test coverage detected