(folder)
| 119 | } |
| 120 | |
| 121 | function parentFolderPath(folder) { |
| 122 | const f = normalizeFolderPath(folder); |
| 123 | if (f === 'root') return 'root'; |
| 124 | const idx = f.lastIndexOf('/'); |
| 125 | if (idx <= 0) return 'root'; |
| 126 | return f.slice(0, idx); |
| 127 | } |
| 128 | |
| 129 | function getActiveFolder() { |
| 130 | return normalizeFolderPath(window.currentFolder || 'root'); |
no test coverage detected