rsim v0.1.0 Rsim.FileInfo View Source

Helper to get basic file info

Link to this section Summary

Functions

Defines mime type for an image

Defines file size in bytes

Link to this section Functions

Link to this function get_mime!(path) View Source
get_mime!(String.t()) :: String.t()

Defines mime type for an image

mime = Rsim.FileInfo.get_mime!(“/path/to/file”)

Link to this function get_size!(path) View Source
get_size!(String.t()) :: number()

Defines file size in bytes

file_size_in_bytes = Rsim.FileInfo.get_size!(“/path/to/file”)