(filePath: string)
| 2 | jsonFilePath.substring(0, jsonFilePath.lastIndexOf(".")) + ".sqlite"; |
| 3 | |
| 4 | export function getPathDepth(filePath: string) { |
| 5 | const separatorRegExp = /[\\/]/g; |
| 6 | const depth = (filePath.match(separatorRegExp) || []).length; |
| 7 | return depth; |
| 8 | } |