Skip to content

Conversation

@srichs
Copy link
Owner

@srichs srichs commented Feb 8, 2026

Motivation

  • Surface invalid keyfiles inputs early and prevent malformed or nonexistent keyfile paths from being passed to the VeraCrypt CLI.

Description

  • Add a new _validate_keyfiles(self, keyfiles, context) method that ensures keyfiles is a list of strings and that each path exists, raising ValueError or VeraCryptError on problems.
  • Invoke _validate_keyfiles(keyfiles, "create_volume") at the start of create_volume to validate keyfile inputs before building CLI commands.

Testing

  • No automated tests were executed for this change.

Codex Task

@srichs srichs merged commit 37c86ce into main Feb 8, 2026
0 of 2 checks passed
@srichs srichs deleted the codex/review-code-for-suggested-changes branch February 8, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant