filesets-directory-files

filesets-directory-files is a compiled Lisp function in `filesets.el'.

(filesets-directory-files DIR &optional PATTERN WHAT FULL-FLAG MATCH-DIRS-FLAG)

Get WHAT (:files or :dirs) in DIR.
If PATTERN is provided return only those entries matching this
regular expression.
If MATCH-DIRS-FLAG is non-nil, also match directory entries.
Return full path if FULL-FLAG is non-nil.