1.2.7.4.24 SYS_FS_FileTestError Function
1.2.7.4.24 C
bool SYS_FS_FileTestError
(
SYS_FS_HANDLE handle
);
1.2.7.4.24 Summary
Checks for errors in the file.
1.2.7.4.24 Description
This function checks whether or not file has any errors.
1.2.7.4.24 Precondition
A valid file handle must be obtained before passing to the function.
1.2.7.4.24 Parameters
| Parameters | Description |
|---|---|
| handle | File handle obtained during file Open |
1.2.7.4.24 Returns
On success returns false indicating that the file has no errors. On failure returns true. The reason for the failure can be retrieved with SYS_FS_Error or SYS_FS_FileError.
1.2.7.4.24 Example
SYS_FS_HANDLE fileHandle;
bool err;
fileHandle = SYS_FS_FileOpen("/mnt/myDrive/FILE.JPG", (SYS_FS_FILE_OPEN_READ));
if(fileHandle != SYS_FS_HANDLE_INVALID)
{
// File open is successful
}
...
...
err = SYS_FS_FileTestError(fileHandle);
if(err == true)
{
// either file has error, or there
// was an error in working with the "SYS_FS_FileTestError" function
}
1.2.7.4.24 Remarks
None.
