Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required file sources (closes #110) #115

Merged
merged 2 commits into from
Aug 28, 2024

Commits on Aug 28, 2024

  1. Add 'Data::required()' to enforce file existence.

    Setting `.required(true)` on a `Data` provider with a file path source
    will make the provider fail when the file does not exist. This contrasts
    with the default behaviour of `.required(false)` which treats missing
    files as empty dictionaries.
    
    Resolves SergioBenitez#110.
    thorio authored and SergioBenitez committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    41b2ff3 View commit details
    Browse the repository at this point in the history
  2. Make file searching dynamically configurable.

    This commit extends the previous commit by also making source file
    searching dynamically configurable as opposed to forcing the choice when
    the data source is created. The `file_exact()` constructor is deprecated
    in favor of `file().search(false)`.
    SergioBenitez committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    4acf45b View commit details
    Browse the repository at this point in the history