record: ensure recordings dir exists

Fixes caelestia-dots/shell#199
This commit is contained in:
2 * r + 2 * t
2025-07-07 14:26:02 +10:00
parent 14286fcded
commit a2cc4f506d
+1
View File
@@ -60,6 +60,7 @@ class Command:
# Move to recordings folder # Move to recordings folder
new_path = recordings_dir / f"recording_{datetime.now().strftime('%Y%m%d_%H-%M-%S')}.mp4" new_path = recordings_dir / f"recording_{datetime.now().strftime('%Y%m%d_%H-%M-%S')}.mp4"
recordings_dir.mkdir(exist_ok=True, parents=True)
recording_path.rename(new_path) recording_path.rename(new_path)
# Close start notification # Close start notification