detect_filetype#

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

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

Parameters:

filepath (str, pathlib.Path) – Where the file is.

Returns:

filetype (str) – The type of file.