MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / initConfigDir

Function initConfigDir

lib/server-config.mjs:98–103  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

96 * @return {string} Path to the server config dir
97 */
98function 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

Callers 2

sendEmailsFunction · 0.90
updateIndex.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected