Obtains requested information about an item designated by URL.
- macOS 10.0–10.11Deprecated
- Core Services
A Core Foundation URL reference designating the item about which information is requested; see the CFURL Reference in the Core Foundation Reference Documentation for a description of the
CFURLRefdata type. The URL must have scheme
fileand contain a valid path to either a file or a directory.
Flags specifying what information to obtain; see
LSRequestedfor a description of these flags.
A pointer to an item-information record that, on return, will contain the requested information; see
LSItemfor a description of this structure.
If you request the item’s filename extension (field
extensionof the item-information record, requested by flag
k), you are responsible for releasing the Core Foundation string object in which the extension is returned.
A result code; see Result Codes.
The information obtained about an item can include its filename extension, file type, creator signature, and various item-information flags (indicating, for example, whether the item is an application, or whether it has a hidden extension); see
LSItem for a description of these flags.
Thread-safe since Mac OS version 10.2.