I am attempting to make an array of arrays where there is an array of foldernames that points to an array of file paths:
Folder1: File1, File2, File3
Folder2: File1, File2, File3
etc...
The code I have come up with is:
#Paths of the folders being patched
$HF_Folders_To_Patch_LIST = Get-Childitem $HF_Source_Path | Where-Object {$_.PSIsContainer} | Foreach-Object {$_.FullName}
$HF_FILES_LIST = $HF_Folders_To_Patch_LIST | ForEach-Object { ,@(Get-ChildItem -Path $FolderPath | Foreach-Object {$_.FullName}) }
From my understanding I should be using "@()" or ",@()", however I can't seem to find too many resource on creating an array within an array online, I maybe googling it wrong. Am I on the right track to do it this way, or is it even possible to do it this way? I can make a for loop and probably get the outcome I want, but I feel as if I am misunderstanding how arrays work in powershell when using the pipes.