os.Path.dirOpen

Opens a directory and returns an integer handle to this directory.

Syntax

os.Path.dirOpen(
   dname STRING)
  RETURNING dirhandle INTEGER
  1. dname is the name of the directory.
  2. dirhandle is the directory handle.

Usage

This function creates a handle to scan the elements of a directory.

The function returns a value of 0 if it fails to open the directory.

Before calling the dirOpen() method, you can define a filter with os.Path.dirFMask(), and a sort order with os.Path.dirSort().