Kuby/scratch/check_file.py

13 lines
333 B
Python
Raw Permalink Normal View History

import os
import json
member_id = 1141309757370675262
path = f"data/member_logs/{member_id}.json"
print(f"Path: {path}")
print(f"Exists: {os.path.exists(path)}")
if os.path.exists(path):
print(f"Size: {os.path.getsize(path)}")
with open(path, 'r') as f:
content = f.read()
print(f"Content: {repr(content)}")