infer_archive_format

emmet.archival.base.infer_archive_format(file_name)

Infer the format of a file.

Return type:

ArchivalFormat

Parameters:

file_name (Annotated[str | Path | DirEntry[str] | PathLike[str], PlainSerializer(func=~emmet.core.types.typing.<lambda>, return_type=str, when_used=always)])

Parameters

file_name (FSPathType) : The name of the file

Returns

ArchivalFormat