Description

Retrieves the subdirectories within a directory.

Syntax

results = RTI_OS_Directory( "GETSUBDIRECTORIES" <, levels> )

Parameters

directoryThe directory from which subdirectories should be returned.
levels<Optional> The number of subdirectory levels to navigate. Defaults to 1, which will only return the sub directories of the passed directory.

Return Value

Returns an @fm delimited list of subdirectories in the given directory, in the order in which they were encountered.

Example 1

declare function RTI_OS_Directory
 
// returns an @fm delimited list of subdirectories in the c:\revsoft
// directory
 
directory = "c:\revsoft"
levels = 1
result = RTI_OS_Directory( "GETSUBDIRECTORIES", directory, levels )
  • No labels