(filePath:string, goback = 0)
| 3 | import { getTargetDirectoryPath } from './paths' |
| 4 | |
| 5 | function relativePath(filePath:string, goback = 0) { |
| 6 | const levels = Array(goback ).fill('..'); |
| 7 | return path.resolve(getTargetDirectoryPath(), ...levels, filePath.trim()); |
| 8 | } |
| 9 | |
| 10 | function createDirectoryIfNotExists(passedPath:string) { |
| 11 | const dirPath = relativePath(passedPath); |
no test coverage detected