(folder)
| 106 | return folder; |
| 107 | } |
| 108 | export function getParentFolder(folder) { |
| 109 | if (folder === "root") return "root"; |
| 110 | const lastSlash = folder.lastIndexOf("/"); |
| 111 | return lastSlash === -1 ? "root" : folder.substring(0, lastSlash); |
| 112 | } |
| 113 | |
| 114 | function normalizeFolderToastKey(path) { |
| 115 | const raw = String(path || '').trim(); |
no outgoing calls
no test coverage detected