-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Continue work on checking for package/budle
Addresses #1. In this commit I have removed any old work using getxattr, as getxattr deals with extended attributes (metadata) attached to files. They're actually unrelated to ext. attrs.: mdls involves higher level stuff that makes calls into LaunchServices and uses the LS database. I have discovered (using nm) that in particular, mdls makes calls to MDItemCopyAttributeNames and MDItemCopyAttributes. As such I have been working on porting over logic using these C calls. However, MDItem* functions require path names to be CFStrings, so a lot of work has gone into different encodings (thanks Apple). I still need to get the _mdls function working as expected, as currently I presumably have the attribute list using MDItemCreate and MDItemCopyAttributeNames, however I need to parse it correctly and extract the attribute that I want to use to determine if the path is a package or a bundle.
- Loading branch information
1 parent
663010d
commit b5c01b2
Showing
1 changed file
with
110 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters