Skip to content

fix(explorer): allow an existing result dir - #845

Open
HaoZeke wants to merge 2 commits into
developfrom
fix/explorer-result-dir
Open

HaoZeke wants to merge 2 commits into
developfrom
fix/explorer-result-dir

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

finish_search created the result directory with a mkdir that rejects an existing path, so a second save of the same result name failed.

The mkdir now accepts an existing directory. This is the finish_search call, which #802 does not touch. The process search guide and a newsfragment record the change.

tests/test_explorer_result_dir.py::test_saving_a_result_twice_keeps_the_files fails on develop at d243519 and passes on this branch.

Saving the same result name twice raises because the
result directory is created without allowing it to
exist already.
The result directory was created with mkdir that
rejects an existing path. A second save of the same
result name then failed. Create the directory only
when it is missing and replace the files in place.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant