SuperDAJB (@zzzdajb)该死的CodeX删了我几百G文件! 中发帖

事情的起因总是如此悲伤—— 
• Ran $workspace = (Resolve-Path '.').Path; $target = (Resolve-Path '.\.cache').Path; if (-not $target.StartsWith($workspace, [System.StringComparison]::OrdinalIgnoreCase)) { throw "Refusing to delete path outside workspace:

│ $target" }; & takeown /f $target /r /d y; & icacls $target /grant Administrators:(OI)(CI)F /t /c; & cmd /c "rd /s /q \"$target\""; Write-Output ...