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

Function withBasePath

public/js/sharedFolderView.js:304–310  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

302 }
303
304 function withBasePath(path) {
305 const base = getBasePathFromLocation();
306 const s = String(path || '');
307 if (!base || !s.startsWith('/')) return s;
308 if (s === base || s.startsWith(base + '/')) return s;
309 return base + s;
310 }
311
312 function joinPath(base, name) {
313 const b = String(base || '').trim();

Callers 6

buildShareUrlFunction · 0.70
buildDownloadFileUrlFunction · 0.70
buildDownloadAllUrlFunction · 0.70
buildShareAiChatUrlFunction · 0.70
loadPublicSiteConfigFunction · 0.70
loadPublicAiConfigFunction · 0.70

Calls 1

getBasePathFromLocationFunction · 0.70

Tested by

no test coverage detected