()
| 733 | } |
| 734 | |
| 735 | function getRootPath() { |
| 736 | let rootPath = path.resolve(__dirname); |
| 737 | while (rootPath) { |
| 738 | if (fs.existsSync(rootPath + '/config.json')) { |
| 739 | break; |
| 740 | } |
| 741 | rootPath = rootPath.substring(0, rootPath.lastIndexOf(path.sep)); |
| 742 | } |
| 743 | return rootPath; |
| 744 | } |
| 745 | |
| 746 | function mkdirs(dirname) { |
| 747 | if (fs.existsSync(dirname)) { |
no test coverage detected