Skip to content

Detect missing required WACZ files#52

Draft
Mirochill wants to merge 1 commit into
webrecorder:mainfrom
Mirochill:fix-46-detect-missing-required-files
Draft

Detect missing required WACZ files#52
Mirochill wants to merge 1 commit into
webrecorder:mainfrom
Mirochill:fix-46-detect-missing-required-files

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

  • treat empty glob.glob() results as missing required WACZ archive, index, and pages files
  • check indexes/index.cdx as an accepted index filename instead of checking index.cdx.gz twice
  • leave the existing pages error wording unchanged because Update WACZ validation error message #49 already covers that message-only update

Fixes #46

Validation

  • git diff --check HEAD~1..HEAD
  • rg -n "glob\\.glob\\(.*== False|== False" wacz/validate.py (no matches)
  • Not run locally: test suite / CLI

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.

Validate does not detect missing index or pages file

1 participant