Description
Determines whether a directory exists.
Syntax
exists = RTI_OS_Directory( "EXISTS", directory )
Parameters
| directory |
|---|
| The full path to the directory to be verified. |
Return Value
| Value | Description |
|---|---|
| -1 | The path does not exist. |
| 0 | The path is valid however it is not a directory. |
| 1 | The path exists. |
Example 1
declare function RTI_OS_Directory // checks to see if the directory c:\revsoft\mydir exists directory = "c:\revsoft\mydir" exists = RTI_OS_Directory( "EXISTS", directory )