vault backup: 2026-11-05 17:22:39

This commit is contained in:
admin committed 2026-11-05 17:22:39 +08:00
1 parent e546543b70
commit 0c2593f0c0
2 files changed
+14 -2

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
def write_file(path, content):
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, 'w', encoding='utf-8') as f:
f.write(content.strip() + '\n')
print(f'Wrote {path}: {len(content)} chars')