detect_filetype#

sunpy.io.detect_filetype(filepath)[source]#

Attempts to determine the type of file a given filepath is.

Parameters:

filepath (str) – Where the file is.

Returns:

filetype (str) – The type of file.