MCPcopy Index your code
hub / github.com/json-editor/json-editor / _getFileBaseFromFileLocation

Method _getFileBaseFromFileLocation

src/schemaloader.js:330–334  ·  view source on GitHub ↗
(fileLocationString)

Source from the content-addressed store, hash-verified

328 }
329
330 _getFileBaseFromFileLocation (fileLocationString) {
331 const pathItems = fileLocationString.split('/')
332 pathItems.pop()
333 return `${pathItems.join('/')}/`
334 }
335
336 _joinUrl (url, fileBase) {
337 let fetchUrl = url

Callers 2

_getFileBaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected