def update_master_filename(old_file_name, new_file_name, rw_pw, unmount = true)
      raise JSS::NoSuchItemError, "#{old_file_name} does not exist in the jss." unless @in_jss
      mdp = JSS::DistributionPoint.master_distribution_point api: @api
      pkgs_dir = mdp.mount(rw_pw, :rw) + DIST_POINT_PKGS_FOLDER.to_s
      old_file = pkgs_dir + old_file_name
      raise JSS::NoSuchItemError, "File not found on the master distribution point at #{DIST_POINT_PKGS_FOLDER}/#{old_file_name}." unless \
        old_file.exist?

      new_file = pkgs_dir + new_file_name
      # use the extension of the original file.
      new_file = pkgs_dir + (new_file_name + old_file.extname) if new_file.extname.empty?

      old_file.rename new_file
      mdp.unmount if unmount
      nil
    end
def update_master_filename(old_file_name, new_file_name, rw_pw, unmount = true)
      raise JSS::NoSuchItemError, "#{old_file_name} does not exist in the jss." unless @in_jss
      mdp = JSS::DistributionPoint.master_distribution_point api: @api
      pkgs_dir = mdp.mount(rw_pw, :rw) + DIST_POINT_PKGS_FOLDER.to_s
      old_file = pkgs_dir + old_file_name
      raise JSS::NoSuchItemError, "File not found on the master distribution point at #{DIST_POINT_PKGS_FOLDER}/#{old_file_name}." unless \
        old_file.exist?

      new_file = pkgs_dir + new_file_name
      # use the extension of the original file.
      new_file = pkgs_dir + (new_file_name + old_file.extname) if new_file.extname.empty?

      old_file.rename new_file
      mdp.unmount if unmount
      nil
    end
Change the name of a package file on the master distribution point.

 @param new_file_name[String]

 @param old_file_name[default: @filename, String]

 @param unmount[Boolean] whether or not ot unount the distribution point when finished.

 @param rw_pw[String,Symbol] the password for the read/write account on the master Distribution Point,
   or :prompt, or :stdin# where # is the line of stdin containing the password See {JSS::DistributionPoint#mount}

 @return [nil]