Skip to content

fix: avoid redundant test-vectors dir creation in bindgen#656

Open
Forostovec wants to merge 1 commit intozkmopro:mainfrom
Forostovec:fix/bindgen-test-vectors-dir-init
Open

fix: avoid redundant test-vectors dir creation in bindgen#656
Forostovec wants to merge 1 commit intozkmopro:mainfrom
Forostovec:fix/bindgen-test-vectors-dir-init

Conversation

@Forostovec
Copy link
Contributor

Remove the initial fs::create_dir_all(&test_vectors_dir)?; call in bindgen so that the directory is created only once, after optionally removing an existing one. This keeps the logic consistent with the rest of the codebase, avoids unnecessary filesystem calls, and makes the behavior more robust in edge cases where a non-directory exists at the target path.

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