Purpose
 

ACCESS_INTERNAL_FILE checks that a file exists and has the appropriate access permissions.

Syntax
 

ACCESS_INTERNAL_FILE(<filename>, <permissions>, [<lower case flag>])

Operation

<filename> Name only of the file (Path and extension are deduced)

<permissions>

2 – write

4 – read

6 – read and write

Note : Only 6 is supported.

<lower case flag> One byte string

"1" - allows filename to be converted to lowercase

"0" - does not allow filename to be converted to lowercase.

Remarks

Returns:

1 - Required access permitted

-1 - Required access not permitted

Example

#RC = ACCESS_INTERNAL_FILE(“example", "6")

All Internal File Verbs write information messages to the system log.

It is recognised that not all the FSI drivers support all the internal File Verbs functions. Accordingly, error codes are returned as appropriate.

Comment on this topic

Topic ID: 520192

Table of Contents

Index

Glossary

-Search-

Back