catalyst / moodle-tool_advancedreplace

GNU General Public License v3.0
2 stars 0 forks source link

Filter files inside a zip #44

Closed picnicpete closed 1 month ago

picnicpete commented 1 month ago

We want to filter files inside a zip by filename. We can use a regular expression to indicate which files will be included. For example, we may only want to search the content.json file inside each h5p file. So we could search with --mimetypes=application/zip.h5p --internal='/content.json$'

This will provide a performance boost as we no longer need to search in the unwanted files. Presumably we can omit large file like images, and also many small unwanted files.