I have an arrangement that has 3 lines, they are file paths to copy them:
- Configurations/config1.json
- Configurations/config2.json
- Configurations/config3.json
The instruction I use to copy the files is the following:
Foreach ($i in $changes) { Copy-Item $i "C:\file\" -Recurse -Container }
The files have been copied successfully. My question is how to automatically create the directory Configurations/ inside of file/ and files inside of Configurations/.