fixml.modules.utils
Functions
|
Process a string or a Path object, and returns the extension of the |
Module Contents
- fixml.modules.utils.get_extension(file_path: str | pathlib.Path) str
Process a string or a Path object, and returns the extension of the file.
The extension returned does not start with a dot, and all characters are all converted to lower case.
- Parameters:
file_path (Union[str, Path]) – The file path to input.
- Returns:
The extracted and normalized extension of the file.
- Return type:
str