from_file_path method
Leave feedback
On this page
Extracts file extension and maps it to a file type.
def from_file_path(cls, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | str |
The file name or file path. |
Returns: FileType: The detected file type if supported; otherwise returns 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.