UtilityTools.CheckFileAccess Method
Determine the ability of the HotDocs Server process to access a file.
Syntax
bool CheckFileAccess(string filePath, int mode);
Parameters | Description |
filePath | The path of the file to determine access to. |
mode | 0 - Check for the existence of the file. 2 - Check for write-only access to the file. 4 - Check for read-only access to the file. 6 - Check for read-write access to the file. |
Return Value
Return non-zero if the requested access is available.