os.Path.dirFMask

Defines a filter mask for os.Path.dirOpen().

Syntax

os.Path.dirFMask(
   mask INTEGER)
  1. mask defines the filter mask.

Usage

When you call this function, you define the filter mask for any subsequent os.Path.dirOpen() call.

By default, all kinds of directory entries are selected by the dirOpen() function. You can restrict the number of entries by using a filter mask.

The parameter of the os.Path.dirFMask() function must be a combination of the following bits:

For example, to retrieve only regular files, you must call:
CALL os.Path.dirFMask( 1 + 2 + 4 )