digital-preservation / droid

DROID (Digital Record and Object Identification)
BSD 3-Clause "New" or "Revised" License
278 stars 75 forks source link

Question / Point for discussion #1112

Open sparkhi opened 4 months ago

sparkhi commented 4 months ago

This is a point for discussion rather than an issue, so comments are welcome.

Droid CLI has -Nx option ( -Nx zip) from the past and also a filter that can be applied -ff file_ext any zip which would analyse only the zip files. Droid also has a -A option or -At option (-At zip) to analyse the contents of zip file.

These 2 options (filter and analyse) do not work together. e,g, If you have a folder which has a few different files and you wish to only analyse zip files and the contents, these 2 options together seem best bet on the face value, however the result does not show contents of the zip

c:\droid-binary>droid.bat -Nr C:\test-data\archives -At zip -Nx zip

FILE_PATH,PUID
C:\test-data\archives\samples.zip,x-fmt/263

So the questions are: Should these 2 work together? Is there a benefit? if not, should the use of these 2 options together tell the user what's going to happen Is there some workaround present already to achieve a "filter by extension" and "analyse archive" together?