almeira-web/scripts/vps_info.py

10 lines
343 B
Python

import os
print(f"CPU Count: {os.cpu_count()}")
cache_path = "/var/lib/docker/volumes/sss6crntvrcs54qbhvhy5728_appwrite-cache/_data/app-69b84df5003bd8957c5c"
if os.path.exists(cache_path):
cache_files = os.listdir(cache_path)
print(f"Cache files count: {len(cache_files)}")
else:
print(f"Cache path does not exist: {cache_path}")