sunpy/sunpy — pull request #1108 by DanRyanIrish (2014-07-17 12:25:23+00:00)
Title: A function to return a list of file names satisfying a given pattern

Hi guys,
Here is a quick addition to the util module. The new function, file_search(), returns a list of file names in a given path (and its subdirectories) which satisfy a certain pattern, e.g. *.txt. There is a similar function in IDL which solar physicists would be used to using and is very handy for finding files if you don't know the nature of the directory you're searching. It is a very short function consisting of a list comprehension. But it is a complicated list comprehension and required two imports. Combining this into a single function is very handy and usable.
Let me know of any comments.
Cheers!