Skip to content

fix: validate and load glob files - #1844

Draft
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1497
Draft

fix: validate and load glob files#1844
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/issue-1497

Conversation

@magrathean-uk

Copy link
Copy Markdown

Summary

Loads glob-file patterns before backup traversal and turns a directory passed as a glob file into a normal input error.

Why

The previous path let an invalid glob-file input fail later and produce an internal-error style diagnostic. The command now validates and reports the file at the boundary, while preserving every pattern line.

Validation

  • cargo test --locked --test glob_files
  • git diff --check

Fixes #1497.

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.

Internal error caused by passing directory as glob-file

1 participant