neutronpy.fileio.detect_filetype

neutronpy.fileio.detect_filetype(filename)[source]

Simple method for quickly determining filetype of a given input file.

Parameters:
filename : str

File path

Returns:
filetype : str

The filetype of the given input file