fix: clean working dir with long space support on Windows (#2399)

This commit is contained in:
Louis 2024-03-17 11:22:06 +07:00 committed by GitHub
parent 2596001528
commit e74345ecdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,10 +73,10 @@ jobs:
steps: steps:
- name: Clean workspace - name: Clean workspace
run: | run: |
Remove-Item -Path .\* -Force -Recurse Remove-Item -Path "\\?\$(Get-Location)\*" -Force -Recurse
$path = "$Env:APPDATA\jan" $path = "$Env:APPDATA\jan"
if (Test-Path $path) { if (Test-Path $path) {
Remove-Item $path -Recurse -Force Remove-Item "\\?\$path" -Recurse -Force
} else { } else {
Write-Output "Folder does not exist." Write-Output "Folder does not exist."
} }