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

Function folderDepthScore

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

Source from the content-addressed store, hash-verified

4408}
4409
4410function folderDepthScore(folder) {
4411 if (!folder || folder === "root") return 0;
4412 return folder.split("/").filter(Boolean).length;
4413}
4414
4415async function findBestAccessibleFolder({ lastOpenedFolder, sourceId = '' } = {}) {
4416 try {

Callers 1

findBestAccessibleFolderFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected