file-name-all-completions

file-name-all-completions is a built-in function in `C source code'.

(file-name-all-completions FILE DIRECTORY)

Return a list of all completions of file name FILE in directory DIRECTORY.
These are all file names in directory DIRECTORY which begin with FILE.