get_file_info method
Contents
[
Hide
]
get_file_info
Returns the general information about a file.
Returns
An instance of FileInfo class.
def get_file_info(self, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | System.String | The path to the file. |
Example
The following code shows how to check whether a file is password-protected:
get_file_info
Returns the general information about a file.
Returns
An instance of FileInfo class.
def get_file_info(self, document):
...
| Parameter | Type | Description |
|---|---|---|
| document | io.RawIOBase | The source input stream. |
Example
The following code shows how to check whether a file is password-protected:
get_file_info
Returns the general information about a file.
Returns
An instance of FileInfo class.
def get_file_info(self, file_path, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| file_path | System.String | The path to the file. |
| load_options | groupdocs.parser.options.LoadOptions | The options to open the file. |
Example
The following code shows how to check a file type of the password-protected document:
get_file_info
Returns the general information about a file.
Returns
An instance of FileInfo class.
def get_file_info(self, document, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| document | io.RawIOBase | The source input stream. |
| load_options | groupdocs.parser.options.LoadOptions | The options to open the file. |
Example
The following code shows how to check a file type of the password-protected document:
See Also
- module
groupdocs.parser - class
FileInfo - class
Parser