import os, json
# Simulate the new whitelist: any regular file under /tmp
paths=[
 "/tmp/wastewater_flow/acid_wash-06.png",
 "/tmp/wastewater_flow/leachate-06.png",
 "/tmp/eia_diagrams/longyou_full-067.png",
 "/tmp/eia_diagrams/dian_du-013.png",
 "/tmp/eia_diagrams/dian_du-014.png",
]
for p in paths:
    ok=os.path.isfile(p) and os.path.abspath(p).startswith("/tmp/")
    size=os.path.getsize(p) if os.path.exists(p) else -1
    print(("OK" if ok else "FAIL"), p, "size", size)
