[GH-ISSUE #507] [Feature Request] --append should work if file is empty of doesn't exist #278

Closed
opened 2026-02-25 20:33:14 +03:00 by kerem · 1 comment
Owner

Originally created by @dayeggpi on GitHub (Jun 20, 2022).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/507

Hi all,

It would be really helpful to be able to have asciinema to automatically create a file in a given chmod, if it doesnt exist, so that --append would work, if the file doesnt exist.

Idea would be to run asciinema on startup, or everytime terminal is open, and append the initial file.

Today, if the file doesnt exist, and the command has --append, then it wont work...
So ideally, it would be nice to be able to use --append, and if file doesnt exist, asciinema would create it...

Note: same applies if file exists but is empty, today it doesn't work, but ideally it should work..

Originally created by @dayeggpi on GitHub (Jun 20, 2022). Original GitHub issue: https://github.com/asciinema/asciinema/issues/507 Hi all, It would be really helpful to be able to have asciinema to automatically create a file in a given chmod, if it doesnt exist, so that --append would work, if the file doesnt exist. Idea would be to run asciinema on startup, or everytime terminal is open, and append the initial file. Today, if the file doesnt exist, and the command has --append, then it wont work... So ideally, it would be nice to be able to use --append, and if file doesnt exist, asciinema would create it... Note: same applies if file exists but is empty, today it doesn't work, but ideally it should work..
kerem closed this issue 2026-02-25 20:33:14 +03:00
Author
Owner

@ku1ik commented on GitHub (Oct 27, 2023):

Hey! I double-checked this and in fact --append works when file doesn't exist since asciinema 2.2, which was released a month before you filed the issue, so you were probably on 2.1 or earlier version back then.

<!-- gh-comment-id:1782856661 --> @ku1ik commented on GitHub (Oct 27, 2023): Hey! I double-checked this and in fact `--append` works when file doesn't exist since asciinema 2.2, which was released a month before you filed the issue, so you were probably on 2.1 or earlier version back then.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#278
No description provided.