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\Zellis\Exports\example.seq", "6")

Error codes are returned to the caller.

Comment on this topic

Topic ID: 520191

Table of Contents

Index

Glossary

-Search-

Back