(sourceFilePath: string)
| 235 | * @returns Object with directory and filename without extension |
| 236 | */ |
| 237 | export 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 | } |