How do I flag a folder as being a package?

后端 未结 3 908
春和景丽
春和景丽 2021-02-06 09:58

I used to think that folders needed to have an extension so that they are recognized as packages by the Finder. That extension would be declared in the owning application\'s Inf

3条回答
  •  一个人的身影
    2021-02-06 10:43

    There are two commands that may be of interest:

    GetFileInfo iPhoto\ Library
    
    attributes: avBstclinmedz
    

    The B says that the "bundle" bit is set. The SetFile command lets you set them. These let you access the extended attributes in HFS+ (per the man page).

    Here are the possible attributes:

    A   Alias file
    B   Bundle
    C   Custom icon*
    D   Desktop*
    E   Hidden extension*
    I   Inited*
    M   Shared (can run multiple times)
    N   No INIT resources
    L   Locked
    S   System (name locked)
    T   Stationery
    V   Invisible*
    Z   Busy*
    

提交回复
热议问题