file_info v0.0.4 FileInfo View Source
This module is to get some information about files. Currently it just gives you the files MIME-type in a string representation.
Link to this section Summary
Functions
Retrieves informations about one or multiple files, using the file
command
line tool which is shipped with most linux distributions
Link to this section Functions
Link to this function
get_info(names)
View Source
get_info(names)
View Source
get_info(Path.t() | [Path.t()]) :: %{optional(Path.t()) => FileInfo.Mime.t()}
get_info(Path.t() | [Path.t()]) :: %{optional(Path.t()) => FileInfo.Mime.t()}
Retrieves informations about one or multiple files, using the file
command
line tool which is shipped with most linux distributions.