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

Function resolveOutputPath

packages/convert/src/cli.ts:57–70  ·  view source on GitHub ↗
(outputFilename: string)

Source from the content-addressed store, hash-verified

55 }
56
57 const resolveOutputPath = async (outputFilename: string): Promise<string> => {
58 if (customOutputPath) {
59 const absoluteOutputPath = resolve(cwd, customOutputPath)
60 const stat = await fs.stat(absoluteOutputPath).catch(() => null)
61
62 if (stat?.isDirectory()) {
63 return resolve(absoluteOutputPath, outputFilename)
64 }
65
66 return absoluteOutputPath
67 }
68
69 return resolve(cwd, outputFilename)
70 }
71
72 const absolutePath = resolve(cwd, inputPath)
73

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected