The Path class / os.Path methods |
Opens a directory and returns an integer handle to this directory.
os.Path.diropen( dname STRING) RETURNING dirhandle INTEGER
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().