function findfile

Returns all files that satisfy given PATTERN. All occurrences of a backslash are replaced by a slash. Also, a slash is appended to all directories. The search is started from the current directory and is done recursively through the directory structure.

result = findfile(PATTERN)

PATTERN:   A string.

Find all text files (files with the suffix .txt) from the current working directory:
   print findfile("*.txt")

See also
function dir
function fileexists