module Ethon::Easy::Queryable

def file_info(file)

Returns:
  • (Array) - Array of informations.

Parameters:
  • file (File) -- The file to handle.

Other tags:
    Example: Return file info. -
def file_info(file)
  filename = File.basename(file.path)
  [
    filename,
    mime_type(filename),
    File.expand_path(file.path)
  ]
end