I’ve found a solution for myself - wrote .bat
file that replaces all files inside torch
directories with empty files of the same names.
I’ve checked - the next time you launch EGS it wouldn’t notice the difference and wouldn’t try to redownload them.
How it works:
- Create
.bat
file with whatever name you find appropriate. I’ve named minereduce_to_atoms.bat
. Copy the contents below to your.bat
file.
@echo off
echo This script will permanently empty all files in the current and child directories.
echo Be careful before using it!
echo.
pause
for /f "delims=" %%f in ('dir /s /b /a-d ^| findstr /v ".bat"') do (
echo. > "%%f"
)
echo Done...
pause
-
Put
.bat
in one the threetorch
folders that you want to occupy less space (UE_5.1\Engine\Plugins\Experimental\PythonFoundationPackages\Content\Python\Lib\Win64\site-packages\torch
or similar folders for Linux or Mac`) -
Run it, press any button to confirm. Be careful - this
.bat
will actually empty all files in current directory and children folders wherever you run it. -
Voila, you just saved 10GB of disk space. (probably until next big Unreal Engine update)