From 6bda577ba3eb6ddda99ae339f6c09950e6c35018 Mon Sep 17 00:00:00 2001 From: "Bobby Abellana (aider)" Date: Fri, 21 Feb 2025 09:46:16 -0800 Subject: [PATCH] feat: Add newlines to status text for file listing --- SharePointFunctions.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SharePointFunctions.ps1 b/SharePointFunctions.ps1 index ed741cc..c282253 100644 --- a/SharePointFunctions.ps1 +++ b/SharePointFunctions.ps1 @@ -258,8 +258,12 @@ function List-XlsFiles { $fileList = Get-XlsFilesRecursive -DriveId $drive.Id -DriveItemId $root.Id } - if ($fileList.Count -gt 0) { + if ($fileList.Count -gt 0) { $script:txtStatus.Text += "Saving file list...`n" + # Display each file on a new line + $fileList | ForEach-Object { + $script:txtStatus.Text += "$($_.OriginalFileName)`n" + } $fileList | ConvertTo-Json | Out-File "$env:TEMP\FileList.json" $script:txtStatus.Text += "Found $($fileList.Count) XLS files`n" } else {