This commit is contained in:
2026-01-22 00:06:13 +08:00
parent f26fc95ea3
commit ed7476e54b
316 changed files with 4962 additions and 14039 deletions

View File

@@ -8,11 +8,11 @@ echo.
echo Starting cache cleanup...
echo.
REM 计数器初始化
@REM Counter initialization
set "pycache_count=0"
set "temp_count=0"
REM 清理 Python __pycache__ 目录
REM Clean up the Python __pycache__ directory
echo [1/2] Cleaning Python cache files...
for /f "delims=" %%d in ('dir /s /b /ad __pycache__ 2^>nul') do (
echo Deleting: %%d
@@ -22,10 +22,10 @@ for /f "delims=" %%d in ('dir /s /b /ad __pycache__ 2^>nul') do (
)
)
REM 清理临时文件
REM Clean up temporary files
echo [2/2] Cleaning temporary files...
for %%ext in (*.tmp *.temp *.pyo) do (
for /f "delims=" %%f in ('dir /s /b "%%ext" 2^>nul') do (
for %%e in (tmp temp pyo) do (
for /f "delims=" %%f in ('dir /s /b "*.%%e" 2^>nul') do (
echo Deleting: %%f
del /f /q "%%f" 2>nul
if !errorlevel! equ 0 (