in reply to searching folder for specific files
Readdir is what you want, unless you want to search for the files recursively (in subdirectories too). You must match the resulting filenames to a regexp like /\.exe\z/. Just don't forget to escape the dot!
|
|---|