Update
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user