Skip to content

Adjusted naming of files uploaded to Zenodo.#1636

Merged
prioux merged 1 commit into
aces:masterfrom
prioux:zenodo_file_upload
Jun 18, 2026
Merged

Adjusted naming of files uploaded to Zenodo.#1636
prioux merged 1 commit into
aces:masterfrom
prioux:zenodo_file_upload

Conversation

@prioux

@prioux prioux commented Jun 17, 2026

Copy link
Copy Markdown
Member

It seems the library was finding out about the name for the file by calling a mathod on the file handle, and ignoring the separate name string we provided to it. This change makes sure the tmp files have exactly the names we want; they're put in a temp folder named after the deposit ID. Fixes #1635

It seems the library was finding out about the name
for the file by calling a mathod on the file handle,
and ignoring the separate name string we provided to it.
This change makes sure the tmp files have exactly the
names we want; they're put in a temp folder named after
the deposit ID.
@MontrealSergiy

Copy link
Copy Markdown
Contributor

I think this workaround should help. Should I test?

@MontrealSergiy MontrealSergiy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic seems fine.

I tested a Diagnostic task, it worked as expected.

I'd use a random number in folder name for files for folders too, not sure what would happen if several uploads done in the same time but did not try it

@prioux

prioux commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

@MontrealSergiy Thanks for testing it.

@prioux prioux merged commit 2aaaf9a into aces:master Jun 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

some files get numerical suffixes at zenodo

2 participants