Next: , Up: Utility Procedures  


6.1.7.1 getdirs Procedure

Returns a list of all the subdirectories in a single directory that match a glob pattern.

getdirs{-all rootdir pattern}

-all

If this option is given, then subdirectories will be matched recursively.

rootdir

The top level directory to start the search from.

pattern

If you do not specify pattern, getdirs uses a default pattern of *. You may use the common shell wildcard characters in the pattern. If no directories match the pattern, then an empty list is returned.