from_extension method

On this page

from_extension

Gets the FileType for the provided file extension.

def from_extension(cls, file_extension):
    ...
Parameter Type Description
file_extension str File extension.

Returns: File type.

See Also

On this page