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 )