os.Path.diropen

The os.Path.diropen method is used to open a directory and to return an integer handle to it. The syntax of the method invocation is as follows:

CALL os.Path.diropen(dir_name) RETURNING dir_handle

 

where:

·         dir_name = a STRING variable standing for the directory name,

·         dir_handle = an INTEGER variable standing for the directory handle.

Usage

Being executed the function creates a directory list. In case of a failure in the directory opening, the function returns '0'.