ACCESS_FILE |
DEVELOPER |
|
|
Purpose |
ACCESS_FILE checks that a file exists and has the appropriate access permissions. |
Syntax |
ACCESS_FILE(<filepath>, [<permissions>]) |
Operation |
<filepath> String - Full path to the file <permissions> String 2 – write 4 – read 6 – read and write If not specified, 6 is assumed. |
Remarks |
Returns: 1 - Access permitted. -1 - Access not permitted <permissions> Returned as the sum of: 4 - READ_ALLOWED 2 - WRITE_ALLOWED 16 - Directory |
Example |
#RC = ACCESS_FILE("C:\Program Files\NorthgateArinso\Exports\example.seq", "6") |
Error codes are returned to the caller.
Topic ID: 520191