code: async function processFiles(inputDir, outputDir) {
      return new Promise(async (resolve, reject) => {
          let files = glob.sync(inputDir, { "ignore": ["**/node_modules/**"] });
          for (let i = 0; i < files.length; i++) {
              try {
                  let fileName = files[i];
                  if (files[i].lastIndexOf("/") != -1) {
                      fileName = files[i].substr(files[i].lastIndexOf("/"))
                  }
                  fileName = fileName.split(".")[0];
                  let activities = await chatdown(txtfile.readSync(files[i]));
                  let writeFile = `${outputDir}/${fileName}.transcript`;
                  await fs.ensureFile(writeFile);
                  await fs.writeJson(writeFile, activities, { spaces: 2 });
              }
              catch (e) {
                  reject(e);
              }
          }
          resolve(files.length);
      });
  }
docs: Processes multiple files, and writes them to the output directory.
  
  @param {string} inputDir String representing a glob that specifies the input directory
  @param {string} outputDir String representing the output directory for the processesd files
  @returns {Promise<string>|boolean} The length of the files array that was processes