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

Function getParentFolder

public/js/folderManager.js:108–112  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

106 return folder;
107}
108export 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
114function normalizeFolderToastKey(path) {
115 const raw = String(path || '').trim();

Callers 9

commitFunction · 0.85
loadFileListFunction · 0.85
syncTreeAfterFolderMoveFunction · 0.85
handleDropOnFolderFunction · 0.85
finalizeCryptoJobUiFunction · 0.85
renameFolderInlineFunction · 0.85
folderManager.jsFile · 0.85
folderDropHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected