detect_filetype# sunpy.io._file_tools.detect_filetype(filepath, **kwargs)[source]# Attempts to determine the type of file a given filepath is. Parameters: filepath (str, pathlib.Path) – Where the file is. **kwargs (dict) – Additional keyword arguments. Returns: filetype (str) – The type of file.