Files
kefu/im/.deploy/feed-top-refresh-20260902-100032/cleanup_remote.py
T
2026-09-03 08:38:17 +08:00

9 lines
381 B
Python

import json
from pathlib import Path
archive=Path('/tmp/xingyu-feed-top-refresh-20260902-100032.zip')
entry=Path('/www/wwwroot/im.bchongw.com/app')
expected=Path('/www/wwwroot/xingyu-h5/releases/20260902-100147')
assert entry.resolve()==expected
if archive.exists(): archive.unlink()
print(json.dumps({'h5Release':str(entry.resolve()),'temporaryArchiveExists':archive.exists()}))