With Terminal or a BBEdit Worksheet run the command mdls on a file you want to examine the metadata for. For example, a BBEdit newly created and saved Apache Configuration File language type small test file, the command:
mdls /Users/grp/Documents/BBEdit\ temp/MyTest3.htaccess
has the output:
kMDItemContentCreationDate = 2020-03-07 04:38:59 +0000
kMDItemContentCreationDate_Ranking = 2020-03-07 00:00:00 +0000
kMDItemContentModificationDate = 2020-03-07 04:38:59 +0000
kMDItemContentType = "dyn.ah62d4rv4ge80u7dbqrv0n65x"
kMDItemContentTypeTree = (
"dyn.ah62d4rv4ge80u7dbqrv0n65x",
"public.item",
"dyn.ah62d4rv4ge80u7dbqrv0n65x",
"public.data"
)
kMDItemDateAdded = 2020-03-07 04:38:59 +0000
kMDItemDateAdded_Ranking = 2020-03-07 00:00:00 +0000
kMDItemDisplayName = "MyTest3.htaccess"
kMDItemFSContentChangeDate = 2020-03-07 04:38:59 +0000
kMDItemFSCreationDate = 2020-03-07 04:38:59 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "MyTest3.htaccess"
kMDItemFSNodeCount = (null)
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 22
kMDItemFSTypeCode = ""
kMDItemInterestingDate_Ranking = 2020-03-07 00:00:00 +0000
kMDItemKind = "Document"
kMDItemLogicalSize = 22
kMDItemPhysicalSize = 4096
Note: that output is on a Mac OS 10.13 system and my not be the same on other system versions.
The entries kMDItemContentType and kMDItemContentTypeTree uses Apple's Uniform Type Identification system to describe the data type and/or format of the file's content. Since my system has no known Uniform Type Identifier associated with the htaccess file extension, a dynamic type identifier is used (the dyn domain).