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

Function normalizeFolderPath

public/js/fileListView.js:4404–4408  ·  view source on GitHub ↗
(folder)

Source from the content-addressed store, hash-verified

4402}
4403
4404function normalizeFolderPath(folder) {
4405 if (!folder) return "";
4406 const trimmed = String(folder).trim().replace(/^\/+|\/+$/g, "");
4407 return trimmed === "" ? "root" : trimmed;
4408}
4409
4410function folderDepthScore(folder) {
4411 if (!folder || folder === "root") return 0;

Callers 2

findBestAccessibleFolderFunction · 0.70
loadFileListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected