Add Initial startup headers to example request handler

Modules that create folders should log to the console when they do so.
This commit is contained in:
tgpethan 2020-01-02 23:15:00 +00:00
parent 53be5a8201
commit 2508df2619
1 changed files with 2 additions and 0 deletions

View File

@ -11,9 +11,11 @@ BASE_PATH = "/example_request_handler";
// Makes the folders for files of the module // Makes the folders for files of the module
if (!fs.existsSync(__dirname + BASE_PATH)) { if (!fs.existsSync(__dirname + BASE_PATH)) {
fs.mkdirSync(__dirname + BASE_PATH); fs.mkdirSync(__dirname + BASE_PATH);
console.log(`[example_request_handler] Made example_request_handler module folder`);
} }
if (!fs.existsSync(__dirname + BASE_PATH + "/files")) { if (!fs.existsSync(__dirname + BASE_PATH + "/files")) {
fs.mkdirSync(__dirname + BASE_PATH + "/files"); fs.mkdirSync(__dirname + BASE_PATH + "/files");
console.log(`[example_request_handler] Made example_request_handler module files folder`);
} }
module.exports = { module.exports = {