filetype

filetype(path)

Returns the internal Metview type as a string of the specified file.

Parameters

path (str) – file path

Return type

str

When Metview cannot determine the type it returns the string “BAD”. For Metview icons not representing data it returns “NOTE”.