From a2cc4f506d8eda180f270da2ca1b73319a59bca6 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 7 Jul 2025 14:26:02 +1000 Subject: record: ensure recordings dir exists Fixes caelestia-dots/shell#199 --- src/caelestia/subcommands/record.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src/caelestia') diff --git a/src/caelestia/subcommands/record.py b/src/caelestia/subcommands/record.py index 77147d2..e287f7b 100644 --- a/src/caelestia/subcommands/record.py +++ b/src/caelestia/subcommands/record.py @@ -60,6 +60,7 @@ class Command: # Move to recordings folder 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) # Close start notification -- cgit v1.2.3-freya