FileGrabber

A library for getting files of a certain extension from a directory and all its subdirectories.
ms_GetFiles(dir, extention)

dir - The directory to retreive the files from
ext - The extension of the file type you wish to get.

return value - A list of strings with the files found

details - For dir you can either use a relative path or an absolute path. The type of path you use will determine what type of paths the return value will have. If no extension is supplied it will return any file type. The extension variable is tested against the end of the filename so if you don't include a period in the extension variable you may get other types as well as the specified ones. This function recursively handles subdirectories so you'll also get files back that exist in sub directories.

Version 2

  • Login to open project files
  • Date Added: 07/08/04

Advertisement