last ...
This commit is contained in:
@@ -8,7 +8,7 @@ $timestamp = Get-Date -Format 'yyyyMMdd_HHmmss'
|
||||
if ([string]::IsNullOrWhiteSpace($Path)) {
|
||||
# If no path is provided, use current path
|
||||
$searchPath = (Get-Location).Path
|
||||
$outputFile = ".\xDashboard-$timestamp.txt"
|
||||
$outputFile = ".\Documents\GeneratedContext\xDashboard-$timestamp.txt"
|
||||
}
|
||||
else {
|
||||
if (-not (Test-Path -LiteralPath $Path -PathType Container)) {
|
||||
@@ -24,7 +24,7 @@ else {
|
||||
# Make folder name safe for file name
|
||||
$safeLastFolder = $lastFolder -replace '[\\/:*?"<>|]', '_'
|
||||
|
||||
$outputFile = ".\xDashboard-$safeLastFolder-$timestamp.txt"
|
||||
$outputFile = ".\Documents\GeneratedContext\xDashboard-$safeLastFolder-$timestamp.txt"
|
||||
}
|
||||
|
||||
Get-ChildItem -LiteralPath $searchPath -Recurse -File |
|
||||
|
||||
Reference in New Issue
Block a user