NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can also rename a collection or file. 

To move or rename one or more collections or files:

  1. In your file system, create a JSON file that specifies a list of source and destination locations, as follows:

    Code Block
    {
     "moveRequests": [
      {
       "sourcePath": <full path in DME to the file/collection to be moved>
       "destinationPath": <full path in DME to the new file/collection>
      },
      {
       "sourcePath": <full path in DME to the file/collection to be moved>
       "destinationPath": <full path in DME to the new file/collection>
      }
     ]
    }
  2. Make sure that the destination collection or file does not already exist. 
  3. Run the following command:

    Code Block
    dm_rename <move-description.json> [rename-status-file] [REST-response]

    The following table describes each parameter:

    ParameterDescription
    <move-description.json>The name of A path to the JSON file containing the source and destination locations.
    [rename-status-file]An optional path and filename. If you specify this parameter, the system creates the specified file in the specified location and saves the status of the move or rename operation (the response from the server) in that file.
    [REST-response]
    Include Page
    shared info - REST-response parameter
    shared info - REST-response parameter

...