* Ensures that the server config directory (something like '/etc/solid-server' * or './config', taken from the `configPath` config.json file) exists, and * creates it if not. * * @param argv * * @return {string} Path to the server config dir
(argv)
| 96 | * @return {string} Path to the server config dir |
| 97 | */ |
| 98 | function initConfigDir (argv) { |
| 99 | const configPath = path.resolve(argv.configPath) |
| 100 | fs.mkdirp(configPath) |
| 101 | |
| 102 | return configPath |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Ensures that the customizable 'views' folder exists for this installation |
no outgoing calls
no test coverage detected