DROID CLI can't identify file format by extension in no-profile-mode
See original GitHub issueThe current signature file (DROID_SignatureFile_V94.xml
) contains some file format definitions that contain only an <Extension>
and no <InternalSignatureID>
-reference to a byte signature. One such example is the file format definition for “Java language source code file” (x-fmt/422
):
<FileFormat ID="809" Name="Java language source code file" PUID="x-fmt/422">
<Extension>java</Extension>
</FileFormat>
DROID UI identifies a file with the .java
-extension correctly as x-fmt/422
but DROID CLI returns Unknown
.
Input:
touch Test.java
./droid.sh -Nr Test.java -Ns DROID_SignatureFile_V94.xml -Nc container-signature-20180920.xml
Output:
DROID 6.4 No Profile mode: Runtime Information
Selected folder or file: Test.java
Binary signature file: DROID_SignatureFile_V94.xml
Container signature file: container-signature-20180920.xml
Open archives: False
Open web archives: False
/home/xxx/DROID-6.4/Test.java,Unknown
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
DROID: User Guide | The National Archives
An 'extension' identification means that a format was identified purely on the basis of its file extension. Such an identification may not be...
Read more >Generate FileCollection report XML from Command Line with ...
I have tested the build in reports and I can't seem to find one that links the file path (or URI) and the...
Read more >How To Open a File With No Extension - Online Tech Tips
You can check the file extension from the Type column in Windows ... you do if your file does have an extension but...
Read more >How can I determine file type without an extension on Windows?
You can use the TrID tool which has a growing library of file type definitions for identifying files with.
Read more >Error: not a valid Photoshop document - Adobe Support
Determine the file type of a document. You may have saved a file with the wrong extension, for example a JPEG file with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
to be fixed with https://github.com/digital-preservation/droid/issues/470
a bit late to come to the party but going to look at this, see if it can be included in the upcoming release.