MCPcopy Index your code
hub / github.com/simstudioai/sim / basePath

Function basePath

apps/sim/lib/pptx-renderer/model/presentation.ts:36–39  ·  view source on GitHub ↗

* Derive the base directory from a file path. * E.g., "ppt/slides/slide1.xml" → "ppt/slides"

(filePath: string)

Source from the content-addressed store, hash-verified

34 * E.g., "ppt/slides/slide1.xml""ppt/slides"
35 */
36function basePath(filePath: string): string {
37 const idx = filePath.lastIndexOf('/')
38 return idx >= 0 ? filePath.substring(0, idx) : ''
39}
40
41/**
42 * For a given XML file path, find its corresponding .rels file path.

Callers 2

relsPathForFunction · 0.85
buildPresentationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected