zimeon / ocfl-py

OCFL tools in Python
MIT License
20 stars 7 forks source link

Ignore logs directory in validation #119

Closed zimeon closed 2 months ago

zimeon commented 2 months ago

Currently the validator complains about a logs directory:

good-objects> ocfl-validate.py minimal_logs_directory_one_log_file
[E001b] OCFL Object root contains unexpected directory: logs (see https://ocfl.io/1.0/spec/#E001)
INFO:ocfl.object:OCFL v1.0 Object at minimal_logs_directory_one_log_file is INVALID

whereas, per the spec https://ocfl.io/1.1/spec/#logs-directory, a logs directory MAY exist, MAY be empty and its contents aren't at all constrained by the specification. So, from a validator point of view, we should just ignore it.