Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/export command appends timestamp to filename, can overwrite output file #853

Closed
JasonWeill opened this issue Jun 21, 2024 · 0 comments · Fixed by #854
Closed

/export command appends timestamp to filename, can overwrite output file #853

JasonWeill opened this issue Jun 21, 2024 · 0 comments · Fixed by #854
Assignees
Labels
bug Bugs reported by users

Comments

@JasonWeill
Copy link
Collaborator

JasonWeill commented Jun 21, 2024

The /export command (#658) appends a timestamp, precise to the minute, to the specified filename. For example, when I run /export foo, I get a file named foo-2024-06-21-09-34.md. If I run the same command again within the same minute, the target file is overwritten.

I consider this a bug for two reasons:

  1. I didn't expect my filename to have a timestamp appended to it, and there is no option to disable this. Most other features in JupyterLab that save or create files do not append a timestamp to a specified filename.
  2. If the target filename already exists, I would expect to see a warning, with an option (e.g., /export -f, for "force") to overwrite the existing file.

See also #852, another recent /export bug.

@JasonWeill JasonWeill added the bug Bugs reported by users label Jun 21, 2024
@JasonWeill JasonWeill changed the title /export command appends filename, can overwrite output file /export command appends timestamp to filename, can overwrite output file Jun 21, 2024
@srdas srdas self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants