code: def get_cf_files(path, queue):
      
      for root, _, files in os.walk(os.path.abspath(path)):
          if not files:
              continue
          for filename in files:
              fullname = os.path.join(root, filename)
              if os.path.isfile(fullname) and fullname.endswith('.cf') or \
                      fullname.endswith('.post'):
                  queue.put(fullname)
docs: Get rule files in a directory and put them in a queue