FileData Class |
Namespace: Opait.Api
public class FileData
The FileData type exposes the following members.
Name | Description | |
---|---|---|
FileData |
Initializes a new instance of the FileData class with default parameters.
| |
FileData(FileInfo) |
Initializes a new instance of the FileData class from the specified FileInfo.
| |
FileData(String) |
Initializes a new instance of the FileData class from the specified path.
|
Name | Description | |
---|---|---|
Exists |
Gets a flag indicating whether the file exists.
| |
Extension |
Gets or sets the extension of the file.
| |
FileName |
Gets the name and extension of the file.
| |
FileNameWithoutExtension |
Gets the file name without extension.
| |
Folder |
Gets the directory where the file resides.
| |
Format |
Gets or sets the format of the file.
| |
FullName |
Gets or sets the path that points to the file.
| |
LastModified |
Gets or sets the date when the file was last modified.
| |
Length |
Gets or sets the length of the file in bytes.
| |
PageCount |
Gets or sets the number of pages in the file.
|
Name | Description | |
---|---|---|
CopyTo |
Copies the current file to the specified destination file.
| |
CopyToFolder |
Copies the current file to the specified destination folder
| |
Delete |
Deletes the current file.
| |
GetFormat |
Get the current file format using file extension or content signature.
| |
MoveTo |
Moves the current file to the specified destination file.
| |
MoveToFolder |
Moves the current file to the specified destination folder
| |
TryDelete |
Attempts to delete the current file.
|