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


   mask INTEGER)
  1. mask defines the filter mask.


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:

  • 0x01 = Exclude hidden files (.*)
  • 0x02 = Exclude directories
  • 0x04 = Exclude symbolic links
  • 0x08 = Exclude regular files
For example, to retrieve only regular files, you must call:
CALL os.Path.dirFMask( 1 + 2 + 4 )