code: def remote(self, *args):
          
          log_path = args[0]
          ChangeLog_txt = args[1]
          lib_path = args[2]
          PACKAGES_TXT = args[3]
          CHECKSUMS_MD5 = args[4]
          FILELIST_TXT = args[5]
          repo = args[6]
  
          if self.checks_logs(log_path, ChangeLog_txt):
              # remove old files
              self.file_remove(log_path, ChangeLog_txt.split("/")[-1])
              self.file_remove(lib_path, PACKAGES_TXT.split("/")[-1])
              self.file_remove(lib_path, CHECKSUMS_MD5.split("/")[-1])
              self.file_remove(lib_path, FILELIST_TXT.split("/")[-1])
              if repo == "slack":
                  dirs = ["core/", "extra/", "pasture/"]
                  for d in dirs:
                      self.file_remove(lib_path + d, "PACKAGES.TXT")
                      self.file_remove(lib_path + d, "CHECKSUMS.md5")
                  self.down(lib_path + "core/", PACKAGES_TXT, repo)
                  self.down(lib_path + "core/", CHECKSUMS_MD5, repo)
                  self.down(lib_path + "extra/", self.EXTRA, repo)
                  self.down(lib_path + "extra/", self.EXT_CHECKSUMS, repo)
                  if slack_ver() != "14.0":  # no pasture/ folder for 14.0 version
                      self.down(lib_path + "pasture/", self.PASTURE, repo)
                      self.down(lib_path + "pasture/", self.PAS_CHECKSUMS, repo)
              # download new files
              if repo != "slack":
                  self.down(lib_path, PACKAGES_TXT, repo)
                  self.down(lib_path, CHECKSUMS_MD5, repo)
              self.down(lib_path, FILELIST_TXT, repo)
              self.down(log_path, ChangeLog_txt, repo)
docs: Remove and recreate files