Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2667

Support list of files for put and get subcommands in mongofiles

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 100.2.0
    • None
    • None
    • Needed
    • Specify in documentation as needed that put and get subcommands now support lists of files

    Description

      This PR implements logic to support a list of supporting arguments, i.e. file names, for mongofiles put and mongofiles get. The intended behavior is as follows:

      The following (1) should put the specified files in the remote GridFS filesystem:

      mongofiles put first.bson second.bson third.bson

      The following (2) should put all files of the form *.bson in the current directory or any of its subdirectories:

      mongofiles put */.bson

      mongofiles should not evaluate the glob expression logic – the underlying shell should evaluate the glob expression and call mongofiles with a command of the form specified in (1).

      Furthermore, the following command should get the specified files from the remote GridFS filesystem:

      mongofiles get first.bson second.bson third.bson

      The glob interface is not available for `mongofiles ... get` – that should be made available in TOOLS-2668.

      Attachments

        Issue Links

          Activity

            People

              hari.amoor@mongodb.com Hari Amoor (Inactive)
              hari.amoor@mongodb.com Hari Amoor (Inactive)
              Huan Li, Matthew Chiaravalloti, Tim Fogarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: