@@ -69,27 +69,27 @@ if ($ModuleToGenerate.Count -eq 0) {
6969 $ModuleToGenerate = $ModuleMapping.Keys
7070}
7171
72- # This is to ensure that the autorest temp folder is cleared before generating the modules
73- $TempPath = [System.IO.Path ]::GetTempPath()
74- # Check if there is any folder with autorest in the name
75- $AutoRestTempFolder = Get-ChildItem - Path $TempPath - Recurse - Directory | Where-Object { $_.Name -match " autorest" }
72+ # # This is to ensure that the autorest temp folder is cleared before generating the modules
73+ # $TempPath = [System.IO.Path]::GetTempPath()
74+ # # Check if there is any folder with autorest in the name
75+ # $AutoRestTempFolder = Get-ChildItem -Path $TempPath -Recurse -Directory | Where-Object { $_.Name -match "autorest" }
7676
77- # Go through each folder and forcefully delete autorest related files
78- $AutoRestTempFolder | ForEach-Object {
79- $AutoRestTempFolder = $_
80- # Delete files and folders if they exist
81- if (Test-Path $AutoRestTempFolder.FullName ) {
82- # Check if each file in the folder exists
83- Get-ChildItem - Path $AutoRestTempFolder.FullName - Recurse | ForEach-Object {
84- $File = $_
85- Write-Debug " Removing cached file $File "
86- if (Test-Path $File.FullName ) {
87- # Remove the file
88- Remove-Item - Path $File.FullName - Force - confirm:$false
89- }
90- }
91- }
92- }
77+ # # Go through each folder and forcefully delete autorest related files
78+ # $AutoRestTempFolder | ForEach-Object {
79+ # $AutoRestTempFolder = $_
80+ # #Delete files and folders if they exist
81+ # if (Test-Path $AutoRestTempFolder.FullName) {
82+ # #Check if each file in the folder exists
83+ # Get-ChildItem -Path $AutoRestTempFolder.FullName -Recurse | ForEach-Object {
84+ # $File = $_
85+ # Write-Debug "Removing cached file $File"
86+ # if (Test-Path $File.FullName) {
87+ # #Remove the file
88+ # Remove-Item -Path $File.FullName -Force -confirm:$false
89+ # }
90+ # }
91+ # }
92+ # }
9393
9494$Stopwatch = [system.diagnostics.stopwatch ]::StartNew()
9595$CpuCount = (Get-CimInstance Win32_Processor).NumberOfLogicalProcessors
0 commit comments