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

ValueDescription
-1The path does not exist.
0The path is valid however it is not a directory.
1The 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 )
  • No labels