ParserGetFileInfo Method (String)
Returns the general information about a file.

Namespace: GroupDocs.Parser
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 21.2.0
Syntax
public static FileInfo GetFileInfo(
	string filePath
)

Parameters

filePath
Type: SystemString
The path to the file.

Return Value

Type: FileInfo
An instance of FileInfo class.
Examples

The following code shows how to check whether a file is password-protected:

C#
// Get a file info
Options.FileInfo info = Parser.GetFileInfo(filePath);
// Check IsEncrypted property
Console.WriteLine(info.IsEncrypted ? "Password is required" : "");
See Also