getInfoForFile(_:application:type:)
Retrieves information about the specified file.
Declaration
func getInfoForFile(_ fullPath: String, application appName: AutoreleasingUnsafeMutablePointer<NSString?>?, type: AutoreleasingUnsafeMutablePointer<NSString?>?) -> BoolParameters
- fullPath:
The full path to the desired file.
- appName:
The app the system would use to open the file.
- type:
On input, a pointer to a string object variable; on return, if the method is successful, this variable contains a string object with the filename extension or encoded HFS file type of the file.
Return Value
true if this method successfully retrieved the information, or false if it couldn’t find the file or the app isn’t associated with the file.
Discussion
You can safely call this method from any thread of your app.
See Also
Related Documentation
Requesting Information
urlForApplication(toOpen:)urlForApplication(toOpen:)urlForApplication(withBundleIdentifier:)urlsForApplications(toOpen:)urlsForApplications(toOpen:)urlsForApplications(withBundleIdentifier:)getFileSystemInfo(forPath:isRemovable:isWritable:isUnmountable:description:type:)isFilePackage(atPath:)frontmostApplicationrunningApplicationsmenuBarOwningApplication