View Source Majic (Majic v1.1.1)

Robust libmagic integration for Elixir.

Summary

Functions

Perform on path.

Types

@type name() :: {:pool, atom()} | {:server, Majic.Server.t()} | {:once, true}
@type option() :: name() | Majic.Server.start_option() | Majic.Pool.option()
@type result() :: {:ok, Majic.Result.t()} | {:error, term() | String.t()}
@type target() :: Path.t() | {:bytes, binary()}

Functions

@spec perform(target(), [option()]) :: result()

Perform on path.

An option of server: ServerName, pool: PoolName or once: true must be passed.