from_extension method
Leave feedback
On this page
Maps file extension to file type.
def from_extension(cls, extension):
...
| Parameter | Type | Description |
|---|---|---|
| extension | str |
File extension with or without the period ‘.’. |
Returns: FileType: The corresponding file type if supported; otherwise FileType.unknown.
- class
FileType
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.