MCPcopy Index your code
hub / github.com/deepnote/deepnote / parseSourceFilePath

Function parseSourceFilePath

packages/convert/src/snapshot/lookup.ts:237–242  ·  view source on GitHub ↗
(sourceFilePath: string)

Source from the content-addressed store, hash-verified

235 * @returns Object with directory and filename without extension
236 */
237export function parseSourceFilePath(sourceFilePath: string): { dir: string; name: string } {
238 const dir = dirname(sourceFilePath)
239 const filename = basename(sourceFilePath)
240 const name = filename.replace(/\.deepnote$/, '')
241 return { dir, name }
242}

Callers 1

lookup.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected