Page History
...
With the following code in the my-move-list.json file, the command renames the a collection from Project_Orig to Project_New and then renames a file from File_Orig to File_New:
Code Block |
---|
{ "moveRequests": [ { "sourcePath": "/Example_Archive/PI_Lab2/Project_Orig", "destinationPath": "/Example_Archive/PI_Lab2/Project_New" }, { "sourcePath": "/Example_Archive/PI_Lab2/Project_New2/File_Orig", "destinationPath": "/Example_Archive/PI_Lab2/Project_New2/File_New" } ] } |
In this example, each sourcePath and destinationPath pair in the JSON file meets the above-mentioned criteria, as follows:
- At command runtime, the Project_New collection name and File_New file name do not already exist.
- At command runtime, the PI_Lab2 collection, Project_Orig collection, Project_2 collection, and File_Orig file already exist. After the command executes the first pair, the Project_New collection name exists, just in time for the second pair.
- In the first pair, only the Project_New collection name has changed. In the second pair, only the File_New file name has changed.