Finder mostra kMDItemKind per alcuni file .java come "Codice sorgente", ma come "Sorgente Java" per gli altri

1

Su macOS 10.13.4, per alcuni file .java , il Finder mostra "Java Source" per kMDItemKind (ovvero la colonna "Tipo" nella vista "Elenco"), ma per alcuni altri file .java , visualizza "Source Code" , anche all'interno della stessa cartella.

Come posso assicurarmi che tutti i file .java abbiano sempre kMDItemKind = "Java Source" ?

Ecco l'output di mdls per un file che mostra "Java Source" :

kMDItemContentCreationDate             = 2017-08-08 08:51:42 +0000
kMDItemContentCreationDate_Ranking     = 2017-08-08 00:00:00 +0000
kMDItemContentModificationDate         = 2017-08-08 08:51:42 +0000
kMDItemContentType                     = "com.sun.java-source"
kMDItemContentTypeTree                 = (
    "com.sun.java-source",
    "public.source-code",
    "public.data",
    "public.plain-text",
    "public.item",
    "public.content",
    "public.text",
    "com.sun.java-source"
)
kMDItemDateAdded                       = 2018-02-04 06:16:53 +0000
kMDItemDateAdded_Ranking               = 2018-02-04 00:00:00 +0000
kMDItemDisplayName                     = "A.java"
kMDItemFSContentChangeDate             = 2017-08-08 08:51:42 +0000
kMDItemFSCreationDate                  = 2017-08-08 08:51:42 +0000
kMDItemFSCreatorCode                   = ""
kMDItemFSFinderFlags                   = 0
kMDItemFSHasCustomIcon                 = (null)
kMDItemFSInvisible                     = 0
kMDItemFSIsExtensionHidden             = 0
kMDItemFSIsStationery                  = (null)
kMDItemFSLabel                         = 0
kMDItemFSName                          = "A.java"
kMDItemFSNodeCount                     = (null)
kMDItemFSOwnerGroupID                  = 20
kMDItemFSOwnerUserID                   = 501
kMDItemFSSize                          = 442
kMDItemFSTypeCode                      = ""
kMDItemInterestingDate_Ranking         = 2017-08-08 00:00:00 +0000
kMDItemInterestingDate_RankingRepaired = 1
kMDItemKind                            = "Java Source"
kMDItemLogicalSize                     = 442
kMDItemPhysicalSize                    = 4096

Ecco l'output di mdls per un file nella stessa cartella del file precedente, ma che visualizza "Source Code" invece:

kMDItemContentCreationDate         = 2018-04-02 09:09:37 +0000
kMDItemContentCreationDate_Ranking = 2018-04-02 00:00:00 +0000
kMDItemContentModificationDate     = 2018-04-02 09:09:37 +0000
kMDItemContentType                 = "com.sun.java-source"
kMDItemContentTypeTree             = (
    "com.sun.java-source",
    "public.source-code",
    "public.data",
    "public.plain-text",
    "public.item",
    "public.content",
    "public.text",
    "com.sun.java-source"
)
kMDItemDateAdded                   = 2018-04-02 09:09:37 +0000
kMDItemDateAdded_Ranking           = 2018-04-02 00:00:00 +0000
kMDItemDisplayName                 = "B.java"
kMDItemFSContentChangeDate         = 2018-04-02 09:09:37 +0000
kMDItemFSCreationDate              = 2018-04-02 09:09:37 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "B.java"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 5893
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2018-04-02 00:00:00 +0000
kMDItemKind                        = "Source Code"
kMDItemLogicalSize                 = 5893
kMDItemPhysicalSize                = 8192
    
posta XDR 03.04.2018 - 06:22
fonte

0 risposte

Leggi altre domande sui tag