python-util-list-directories

python-util-list-directories is a compiled Lisp function in `python.el'.

(python-util-list-directories DIRECTORY &optional PREDICATE MAX-DEPTH)

List DIRECTORY subdirs, filtered by PREDICATE and limited by MAX-DEPTH.
Argument PREDICATE defaults to `identity' and must be a function
that takes one argument (a full path) and returns non-nil for
allowed files. When optional argument MAX-DEPTH is non-nil, stop
searching when depth is reached, else don't limit.