4
42
Fork
You've already forked threadcat
0

Error out/warn if threadcat will overwrite existing data #6

Closed
opened 2026年04月21日 05:03:30 +02:00 by gintoxicating · 1 comment

The first few times I used threadcat (just testing it out at first) I noticed it automatically overwrote the output file without warning/error. This has the potential of being destructive if a file of that name already exists or if you re-run threadcat.

It might be nice to default to failing (ie, being non-destructive) and offering a command line argument to override (or doing this interactively).

The first few times I used `threadcat` (just testing it out at first) I noticed it automatically overwrote the output file without warning/error. This has the potential of being destructive if a file of that name already exists or if you re-run `threadcat`. It might be nice to default to failing (ie, being non-destructive) and offering a command line argument to override (or doing this interactively).

Probably good to err on the side of caution. For now, I'm refusing to overwrite existing Markdown files! Thanks for the suggestion.

Probably good to err on the side of caution. For now, I'm refusing to overwrite existing Markdown files! Thanks for the suggestion.
Sign in to join this conversation.
No Branch/Tag specified
main
v0.1.2
v0.1.1
v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
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
blinry/threadcat#6
Reference in a new issue
blinry/threadcat
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?