docs: def scanFolderForRegexp(folder = None, listRegexp = None, recursive = False, verbosity=1, logFolder= "./logs", quiet=False):
      """
      [Optionally] recursive method to scan the files in a given folder.
  
      Args:
      -----
          folder: the folder to be scanned.
          listRegexp: listRegexp is an array of <RegexpObject>.
          recursive: when True, it performs a recursive search on the subfolders.
  
      Returns:
      --------
          list: Available objects containing the expressions found in the
          provided data. An example of the returned data is as follows:
  
          ```
          [
            {
              "attributes": [],
              "type": "i3visio.email",
              "value": "foo@bar.com"
            },
            {
              "attributes": [],
              "type": "i3visio.email",
              "value": "bar@foo.com"
            }
          ]
          ```
      """
      logSet.setupLogger(loggerName="osrframework.entify", verbosity=verbosity, logFolder=logFolder)
      logger = logging.getLogger("osrframework.entify")
  
      logger.info("Scanning the folder: " + folder)
      results = []
  
      #onlyfiles = []
      #for f in listdir(args.input_folder):
      #    if isfile(join(args.input_folder, f)):
      #        onlyfiles.append(f)
      onlyfiles = [ f for f in listdir(folder) if isfile(join(folder,f)) ]
  
      for i, f in enumerate(onlyfiles):
          filePath = join(folder,f)
          logger.debug("Looking for regular expressions in: " + filePath)
          if not quiet:
              print(str(i) + "/" + str(len(onlyfiles)) + "\tLooking for regular expressions in: " + filePath)
          with open(filePath, "r") as tempF:
              # reading data
              foundExpr = getEntitiesByRegexp(data = tempF.read(), listRegexp = listRegexp)
              logger.debug("Updating the " + str(len(foundExpr)) + " results found on: " + filePath)
              aux = {}
              aux["type"] = "i3visio.uri"
              aux["value"] = filePath
              aux["attributes"] = foundExpr
              results.append(aux)
  
      if recursive:
          onlyfolders = [ f for f in listdir(folder) if isdir(join(folder,f)) ]
          for f in onlyfolders:
              folderPath = join(folder, f)
              logger.debug("Looking for additional in the folder: "+ folderPath)
              results.update(scanFolderForRegexp(folder = folderPath,listRegexp = listRegexp, recursive = recursive))
  
      # Printing the information if not in quiet mode
      if not quiet:
          print(general.success(json.dumps(results, indent=2)))
  
      return results