detect_file_type method
detect_file_type
Detects a file type of the container item.
Returns
An instance of FileType class; FileType.Unknown if a file type isn’t detected.
def detect_file_type(self, detection_mode):
...
| Parameter | Type | Description |
|---|---|---|
| detection_mode | groupdocs.parser.options.FileTypeDetectionMode | Defines a mode of the file type detection. |
Example
The following example shows how to detect file type of container item:
See Also
- module
groupdocs.parser.data - class
ContainerItem - class
FileType