Skip to content

KSOFileMagic is a iOS/macOS framework that wraps the Darwin file command, which can determine file type by examining file contents.

License

Notifications You must be signed in to change notification settings

Kosoku/KSOFileMagic

Repository files navigation

KSOFileMagic

Carthage compatible Version Platform License

KSOFileMagic is a iOS/macOS framework that wraps the Darwin file command, which can determine file type by examining file contents. This can be used to identify a file without a file extension or raw data from the network when a MIME type is not provided. The framework prefers to use the UTType family of functions to determine type, but falls back to examining file contents if a file extension is not provided or when examining NSData instances.

Installation

You can install KSOFileMagic using cocoapods, Carthage, or as a framework.

When installing as a framework, ensure you also link to Stanley as KSOFileMagic relies on it.

Dependencies

Third party:

Apple:

  • MobileCoreServices, iOS
  • CoreServices, macOS

About

KSOFileMagic is a iOS/macOS framework that wraps the Darwin file command, which can determine file type by examining file contents.

Resources

License

Stars

Watchers

Forks

Packages

No packages published