docs: def dir_cleanup(dir_bag, dir_data):
      """
      Moves JSON and csv files to bag root, then deletes all the metadata bag files. We'll be creating a new bag with
      the data files, so we don't need the other text files and such.
      :param str dir_bag: Path to root of Bag
      :param str dir_data: Path to Bag /data subdirectory
      :return None:
      """
      logger_directory.info("enter dir_cleanup")
      # dir : dir_data -> dir_bag
      os.chdir(dir_bag)
  
      # Delete files in dir_bag
      for file in os.listdir(dir_bag):
          if file.endswith('.txt'):
              os.remove(os.path.join(dir_bag, file))
      logger_directory.info("deleted files in dir_bag")
      # Move dir_data files up to dir_bag
      for file in os.listdir(dir_data):
          shutil.move(os.path.join(dir_data, file), dir_bag)
      logger_directory.info("moved dir_data contents to dir_bag")
      # Delete empty dir_data folder
      shutil.rmtree(dir_data)
      logger_directory.info("exit dir_cleanup")
      return