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

Function getFileListSummaryDepth

public/js/fileListView.js:537–543  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535}
536
537function getFileListSummaryDepth() {
538 const cfg = window.__FR_SITE_CFG__ || window.siteConfig || {};
539 const display = (cfg && typeof cfg.display === 'object') ? cfg.display : {};
540 const raw = parseInt(display.fileListSummaryDepth, 10);
541 const depth = Number.isFinite(raw) ? raw : DEFAULT_FILE_LIST_SUMMARY_DEPTH;
542 return Math.max(MIN_FILE_LIST_SUMMARY_DEPTH, Math.min(MAX_FILE_LIST_SUMMARY_DEPTH, depth));
543}
544
545function getFileExt(name) {
546 const dot = name.lastIndexOf(".");

Callers 1

fetchFolderSummaryStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected