aboutsummaryrefslogtreecommitdiff
path: root/tests/test-video-audio-recording--normalize-recording-dir.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(recording): create the selected recording directory, not its parentCraig Jennings13 days1-0/+46
The recording toggles took a directory from the prefix-arg prompt (or the default), then ran (file-name-directory location) before make-directory. For a path without a trailing slash that returns the parent, so make-directory created the parent and left the selected directory uncreated — ffmpeg then failed to write into it. Both toggles now route the destination through cj/recording--normalize-recording-dir, which expands and applies file-name-as-directory, then call make-directory on that normalized path. The selected directory itself is created (parents=t is a no-op when it already exists), including names with spaces. Tests cover trailing-slash normalization, idempotence, spaces, and relative-to-absolute expansion.