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

586 - Export batch with no boxes checked overwrites same file repeatedly #6

Closed
jamesrussell216 opened this issue May 17, 2024 · 2 comments
Assignees

Comments

@jamesrussell216
Copy link

nion-software#586

@Tiomat85
Copy link

So attempting to define a spec here:

Prefix_Title_Date_Dimension_Sequence.png is what is currently used. This does not handle situations where there is no Title value (you get the '_' still. If no optiuons are selected, all filenames are equivalent and so it overwrites constantly. If there are existing files, it overwrites.

New spec:
Filename built up as combination of strings still, in the same order with the extra addition of a 'duplicate suffix'. Duplicate suffix is defined as a string, including a $, where $ is replaced with an incrementing number where duplicate file names are included. If the duplicate suffix is not defined, the file will be overwritten.
Blank entries should be excluded, and not include their trailing underscores.

@Tiomat85 Tiomat85 self-assigned this May 20, 2024
@jamesrussell216
Copy link
Author

jamesrussell216 commented May 20, 2024

This works. Just to be explicit, there are two requirements here.

  • In the batch export wizard, if a field is included (ticked/checked) in the filename, but that field is blank (e.g. the Title field is blank/empty), currently you'd get a filename starting with an underscore. This is probably not what the user intends, so in event of a blank field, the software should behave as if that option had not been checked.
  • And 2, adopting the standard Windows (##) behaviour when a file name conflict arises, not overwriting the file.

@jamesrussell216 jamesrussell216 changed the title Export batch with no boxes checked overwrites same file repeatedly 586 - Export batch with no boxes checked overwrites same file repeatedly May 20, 2024
@Ion-e Ion-e closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants