[File] [PATCH] Magdir/sf3 support for the Simple File Format Family of formats

Christos Zoulas christos at zoulas.com
Fri Jun 27 15:14:05 UTC 2025


Committed, thanks!

christos

> On Jun 25, 2025, at 5:53 AM, Yukari Hafner <shinmera at tymoon.eu> wrote:
> 
> This patch adds magic/Magdir/sf3, which recognises the files as specified for the Simple File Format Family (SF3). The magic entries also parse out some of the files' fields for nicer output.
> 
> The SF3 specification can be found here: https://shirakumo.org/docs/sf3/specification
> Along with sample files for testing here: https://shirakumo.org/projects/sf3/tree/master/samples/
> 
> One thing to note: file warns on file extensions with dots in them. For SF3 the canonical file extension has an extra prefix for each contained file type, such as: au.sf3, img.sf3, etc. I've set the file extension to just "sf3" for all of them now, but if in this case it would be better if the warning is ignored and the dotted extensions should be used instead, please let me know and I'll submit an updated patch.
> 
> Similarly, if there's cleaner ways to parse out some of the data (particularly the indirect reads as required for the model file confounded me for a while) please let me know.
> 
> Sincerely, Yukari Hafner
> 
> <0001-Add-support-for-Simple-File-Format-Family-SF3-file-t.patch>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20250627/5158f2c0/attachment.asc>


More information about the File mailing list