BBjFileSystem::recoverFile
Description
Rebuilds any recoverable file type based on the internal recovery information contained within the file. This includes MKEYED, XKEYED, and VKEYED file types.
Syntax
Return Value |
Method |
---|---|
BBjRecoverFileStatus | recoverFile(string filename) |
BBjRecoverFileStatus | recoverFile(string filename, string modes) |
BBjRecoverFileStatus | recoverFile(string filename, string modes, string tmpdir) |
Parameters
Variable |
Description |
---|---|
filename |
Specifies the name of the file to be recovered. |
modes | Mode string to use for opening the original file and creating the new file. Notably, this is where "CRYPTPASS" could be specified for an encrypted file. |
tmpdir | Temporary directory to use for the conversion temporary file. If not specified, it defaults to the same directory as the original file. Prior to 24.01, the default was the Java global temporary directory. |
Return Value
If the file recovery is successful, this returns a BBjRecoverFileStatus object with information about the file recovery.
Example
|
Version History
- BBj 24.01: Added an optional tmpdir argument.
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.