code: def explore_path_filter(self, task_num, dirpath):
          
          base, path = dirpath
          directories = []
          nondirectories = []
          if self.filters.validate(path):
              self._printer("Task: " + str(task_num) + " >>> Explored path: " + path, stream=True)
              # Loop through paths
              for filename in os.listdir(base + os.sep + path):
                  fullname = os.path.join(path, filename)
                  if self.filters.validate(fullname):
                      # Check that non-empty folders flag is on and we're at the max directory level
                      if self.filters.non_empty_folders and self.filters.get_level(fullname) == self.filters.max_level:
                          # Check that the path is not an empty folder
                          if os.path.isdir(base + os.sep + fullname):
                              # Get paths in folder without walking directory
                              paths = os.listdir(base + os.sep + fullname)
  
                              # Check that any of the paths are files and not just directories
                              if paths and any(os.path.isfile(os.path.join(base, fullname, p)) for p in paths):
                                  nondirectories.append((base, fullname))
                      else:
                          # Append to directories if dir
                          if os.path.isdir(base + os.sep + fullname):
                              directories.append((base, fullname))
                          # Pass filters and append to nondirectories if file
                          elif self.filters.validate(fullname):
                              nondirectories.append((base, fullname))
              self.add_path(nondirectories)
          return directories
docs: Explore path to discover unsearched directories and save filepaths
          :param task_num: Processor ID
          :param dirpath: Tuple (base directory, path), path information pulled from unsearched Queue
          :return: Directories to add to unsearched Queue