Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9713

Support specifying output file name for URI fetcher

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • fetcher

    Description

      Currently URI fetcher's `fetch` method is defined like below:

        process::Future<Nothing> fetch(
            const URI& uri,
            const std::string& directory,
            const Option<std::string>& data = None()) const;
      

      So caller can only specify the directory that the URI will be downloaded to but not the name of the output file which has to be same with base name of the URI path. We'd better to introduce an output file name parameter so that caller can customize the output file name.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              qianzhang Qian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: