Closed Jelingam closed 1 month ago
my selenium folder is taking up 22 GB of space.
import os
base_folder = "./selenium/"
all_folder = os.listdir(base_folder)
size = 0.0
for folder in all_folder:
js_folder = f"selenium/{folder}/Default/Code Cache/js/"
if os.path.isdir(js_folder):
js_content = os.listdir(js_folder)
for content in js_content:
c = js_folder + content
size += os.path.getsize(c)
gb = size / 1024 / 1024 / 1024
print(f"folder size = {gb:.1f} GB")
this js folder taking up about 5.6 GB of space
Hi,
The selenium
folder contains the browser sessions of all games, if you were to delete all sub-folders within this folder, you would be essentially deleting the current version of all games. On the next run of the script, the it would attempt to restore the session from the backups folder, which would probably contain less cached content then the session in the selenium folder - that said, if the script was unable to restore from the backup, you'd then need to start again with that session.
how about deleting unnecessary cache ?
as you see in js folder.
Hi @Jelingam,
I've never tried it. You could take a copy of the folder and see what happens after deleting it.
hey phil What happens if I delete this folder?
this is just cache ?